1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D96A.Simples.S2379
10 import Text.Edifact.Parsing
11 import Text.Edifact.Types (Value)
13 -- | Derived from this specification:
15 -- > 2379 Date/time/period format qualifier
17 -- > Desc: Specification of the representation of a date, a date and time
23 -- > Calendar date: D = Day; M = Month; Y = Year.
25 -- > Calendar date: M = Month; D = Day; Y = Year.
27 -- > Calendar date: Y = Year; M = Month; D = Day.
29 -- > Calendar date: C = Century ; Y = Year ; M = Month ; D =
32 -- > Calendar week day: Y = Year ; W = Week ; D = Day Week
33 -- > number 01 is always first week of January Day number 1 is
36 -- > Calendar day: Y = Year ; D = Day January the first = Day
37 -- > 001 Always start numbering the days of the year from
38 -- > January 1st through December 31st.
40 -- > Day of a month: M = Month; D = Day.
42 -- > Day's number within a specific year: D = Day.
44 -- > Week's number within a specific year: W = Week.
46 -- > Month's number within a specific year: M = Month.
48 -- > Day's number within is a specific month: D = Day.
50 -- > Calendar date including time without seconds: Y = Year; M
51 -- > = Month; D = Day; H = Hour; M = Minute.
53 -- > Calendar date including time with seconds: Y = Year; M =
54 -- > Month; D = Day; H = Hour; m = Minutes = Seconds.
56 -- > Calendar date including time with minutes: C=Century;
57 -- > Y=Year; M=Month; D=Day; H=Hour; M=Minutes.
58 -- > 204 CCYYMMDDHHMMSS
59 -- > Calendar date including time with seconds:
60 -- > C=Century;Y=Year; M=Month;D=Day;H=Hour;M=Minute;S=Second.
61 -- > 301 YYMMDDHHMMZZZ
62 -- > See 201 + Z = Time zone.
63 -- > 302 YYMMDDHHMMSSZZZ
64 -- > See 202 + Z = Time zone.
65 -- > 303 CCYYMMDDHHMMZZZ
66 -- > See 203 plus Z=Time zone.
67 -- > 304 CCYYMMDDHHMMSSZZZ
68 -- > See 204 plus Z=Time zone.
70 -- > Month, day, hours, minutes;
71 -- > M = Month; D = Day; H = Hour; M = Minute.
73 -- > Day, hours, minutes;
74 -- > D = Day; H = Hour; M = Minute.
76 -- > Time without seconds: H = Hour; m = Minute.
78 -- > Time with seconds: H = Hour; m = Minute; s = Seconds.
80 -- > See 402 plus Z=Time zone.
82 -- > Time without hours: m=minutes, s=seconds.
84 -- > Time span without seconds: H = Hour; m = Minute;.
85 -- > 502 HHMMSS-HHMMSS
86 -- > Format of period to be given without hyphen.
87 -- > 503 HHMMSSZZZ-HHMMSSZZZ
88 -- > Format of period to be given without hyphen.
92 -- > Calendar year: Y = Year.
94 -- > Calendar year including century: C = Century; Y = Year.
96 -- > Semester in a calendar year: Y = Year; S = Semester.
98 -- > Semester in a calendar year: C = Century; Y = Year; S =
101 -- > Quarter in a calendar year: C = Century; Y = Year; Q =
104 -- > Month within a calendar year: Y = Year; M = Month.
106 -- > Month within a calendar year: CC = Century; Y = Year; M =
109 -- > Format of period to be given without hyphen (A = ten days
112 -- > Format of period to be given without hyphen (A = ten days
115 -- > Week within a calendar year: Y = Year; W = Week 1st week
116 -- > of January = week 01.
118 -- > Week within a calendar year: CC = Century; Y = Year; W =
119 -- > Week (1st week of January = week 01).
121 -- > Format of period to be given in actual message without
124 -- > Format of period to be given in actual message without
127 -- > Format of period to be given without hyphen.
129 -- > Format of period to be given in actual message without
132 -- > Format of period to be given without hyphen (P = period
135 -- > Format of period to be given without hyphen (P = period
138 -- > Format of period to be given without hyphen.
140 -- > Format of period to be given in actual message without
143 -- > Format of period to be given in actual message without
145 -- > 710 CCYYMM-CCYYMM
146 -- > Format of period to be given in actual message without
148 -- > 711 CCYYMMDD-CCYYMMDD
149 -- > Format of period to be given in actual message without
151 -- > 713 YYMMDDHHMM-YYMMDDHHMM
152 -- > Format of period to be given in actual message without
155 -- > Format of period to be given in actual message without
157 -- > 716 CCYYWW-CCYYWW
158 -- > Format of period to be given without hyphen.
159 -- > 717 YYMMDD-YYMMDD
160 -- > Format of period to be given in actual message without
162 -- > 718 CCYYMMDD-CCYYMMDD
163 -- > Format of period to be given without hyphen.
165 -- > To indicate a quantity of years.
167 -- > To indicate a quantity of months.
169 -- > To indicate a quantity of weeks.
171 -- > To indicate a quantity of days.
173 -- > To indicate a quantity of hours.
175 -- > To indicate a quantity of minutes.
177 -- > To indicate a quantity of seconds.
179 -- > To indicate a quantity of semesters (six months).
180 -- > 809 Four months period
181 -- > To indicate a quantity of four months periods.
183 -- > To indicate a quantity of trimesters (three months).
185 -- > To indicate a quantity of half months.
187 -- > To indicate a quantity of ten days periods.
188 -- > 813 Day of the week
189 -- > Numeric representation of the day (Monday = 1).
190 -- > 814 Working days
191 -- > Number of working days.
192 simple2379 :: Parser Value
193 simple2379 = simple "2379" (alphaNumeric `upTo` 3)