1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D01B.Simples.S2379
10 import Text.Edifact.Parsing
11 import Text.Edifact.Types (Value)
13 -- | Derived from this specification:
15 -- > 2379 Date or time or period format code [C]
17 -- > Desc: Code specifying the representation of a date, time or
23 -- > Calendar date: D = Day; M = Month; Y = Year.
26 -- > Calendar date: M = Month; D = Day; Y = Year.
29 -- > Calendar date C=Century; Y=Year; M=Month; D=Day.
32 -- > Calendar date and time: C=Century; Y=Year; M=Month;
33 -- > D=Day; H=Hour; M=Minute.
36 -- > Calendar date: Y = Year; M = Month; D = Day.
39 -- > Calendar date: C = Century ; Y = Year ; M = Month ; D =
43 -- > Calendar week day: Y = Year ; W = Week ; D = Day Week
44 -- > number 01 is always first week of January Day number 1
45 -- > is always Monday.
48 -- > Calendar day: Y = Year ; D = Day January the first = Day
49 -- > 001 Always start numbering the days of the year from
50 -- > January 1st through December 31st.
53 -- > Day of a month: M = Month; D = Day.
56 -- > Day's number within a specific year: D = Day.
59 -- > Week's number within a specific year: W = Week.
62 -- > Month's number within a specific year: M = Month.
65 -- > Day's number within is a specific month: D = Day.
68 -- > Calendar date including time without seconds: Y = Year;
69 -- > M = Month; D = Day; H = Hour; M = Minute.
72 -- > Calendar date including time with seconds: Y = Year; M =
73 -- > Month; D = Day; H = Hour; m = Minutes = Seconds.
76 -- > Calendar date including time with minutes: C=Century;
77 -- > Y=Year; M=Month; D=Day; H=Hour; M=Minutes.
79 -- > 204 CCYYMMDDHHMMSS
80 -- > Calendar date including time with seconds:
81 -- > C=Century;Y=Year;
82 -- > M=Month;D=Day;H=Hour;M=Minute;S=Second.
84 -- > 205 CCYYMMDDHHMMZHHMM
85 -- > Calendar date including time and time zone expressed in
86 -- > hours and minutes.
87 -- > ZHHMM = time zone given as offset from Coordinated
88 -- > Universal Time (UTC).
90 -- > 301 YYMMDDHHMMZZZ
91 -- > See 201 + Z = Time zone.
93 -- > 302 YYMMDDHHMMSSZZZ
94 -- > See 202 + Z = Time zone.
96 -- > 303 CCYYMMDDHHMMZZZ
97 -- > See 203 plus Z=Time zone.
99 -- > 304 CCYYMMDDHHMMSSZZZ
100 -- > See 204 plus Z=Time zone.
103 -- > Month, day, hours, minutes; M = Month; D = Day; H =
104 -- > Hour; M = Minute.
107 -- > Day, hours, minutes; D = Day; H = Hour; M = Minute.
110 -- > Time without seconds: H = Hour; m = Minute.
113 -- > Time with seconds: H = Hour; m = Minute; s = Seconds.
116 -- > See 402 plus Z=Time zone.
119 -- > Time without hours: m=minutes, s=seconds.
122 -- > Offset from Coordinated Universal Time (UTC) where Z is
123 -- > plus (+) or minus (-).
126 -- > Time span without seconds: H = Hour; m = Minute;.
128 -- > 502 HHMMSS-HHMMSS
129 -- > Format of period to be given without hyphen.
131 -- > 503 HHMMSSZZZ-HHMMSSZZZ
132 -- > Format of period to be given without hyphen.
138 -- > Calendar year: Y = Year.
141 -- > Calendar year including century: C = Century; Y = Year.
144 -- > Semester in a calendar year: Y = Year; S = Semester.
147 -- > Semester in a calendar year: C = Century; Y = Year; S =
151 -- > Quarter in a calendar year: C = Century; Y = Year; Q =
155 -- > Month within a calendar year: Y = Year; M = Month.
158 -- > Month within a calendar year: CC = Century; Y = Year; M
162 -- > Format of period to be given without hyphen (A = ten
166 -- > Format of period to be given without hyphen (A = ten
170 -- > Week within a calendar year: Y = Year; W = Week 1st week
171 -- > of January = week 01.
174 -- > Week within a calendar year: CC = Century; Y = Year; W =
175 -- > Week (1st week of January = week 01).
178 -- > Format of period to be given in actual message without
182 -- > Format of period to be given in actual message without
186 -- > Format of period to be given without hyphen.
189 -- > Format of period to be given in actual message without
193 -- > Format of period to be given without hyphen (P = period
197 -- > Format of period to be given without hyphen (P = period
201 -- > Format of period to be given without hyphen.
204 -- > Format of period to be given in actual message without
208 -- > Format of period to be given in actual message without
211 -- > 710 CCYYMM-CCYYMM
212 -- > Format of period to be given in actual message without
215 -- > X 711 CCYYMMDD-CCYYMMDD
216 -- > Format of period to be given in actual message without
220 -- > 1. This code value will be removed effective with
221 -- > directory D.03B.
223 -- > 713 YYMMDDHHMM-YYMMDDHHMM
224 -- > Format of period to be given in actual message without
228 -- > Format of period to be given in actual message without
231 -- > 716 CCYYWW-CCYYWW
232 -- > Format of period to be given without hyphen.
234 -- > 717 YYMMDD-YYMMDD
235 -- > Format of period to be given in actual message without
238 -- > 718 CCYYMMDD-CCYYMMDD
239 -- > Format of period to be given without hyphen.
241 -- > 719 CCYYMMDDHHMM-CCYYMMDDHHMM
242 -- > A period of time which includes the century, year,
243 -- > month, day, hour and minute. Format of period to be
244 -- > given in actual message without hyphen.
247 -- > Format of period to be given without hyphen (D=day of
248 -- > the week, 1=Monday; 2=Tuesday; ... 7=Sunday).
251 -- > To indicate a quantity of years.
254 -- > To indicate a quantity of months.
257 -- > To indicate a quantity of weeks.
260 -- > To indicate a quantity of days.
263 -- > To indicate a quantity of hours.
266 -- > To indicate a quantity of minutes.
269 -- > To indicate a quantity of seconds.
272 -- > To indicate a quantity of semesters (six months).
274 -- > 809 Four months period
275 -- > To indicate a quantity of four months periods.
278 -- > To indicate a quantity of trimesters (three months).
281 -- > To indicate a quantity of half months.
284 -- > To indicate a quantity of ten days periods.
286 -- > 813 Day of the week
287 -- > Numeric representation of the day (Monday = 1).
289 -- > 814 Working days
290 -- > Number of working days.
291 simple2379 :: Parser Value
292 simple2379 = simple "2379" (alphaNumeric `upTo` 3)