]> git.immae.eu Git - github/fretlink/edi-parser.git/blame - specification/src/Text/Edifact/D01B/Simples/S2379.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Simples / S2379.hs
CommitLineData
a9d77a20
FM
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D01B.Simples.S2379
7 ( simple2379
8 ) where
9
10import Text.Edifact.Parsing
11import Text.Edifact.Types (Value)
12
13-- | Derived from this specification:
14--
15-- > 2379 Date or time or period format code [C]
16-- >
17-- > Desc: Code specifying the representation of a date, time or
18-- > period.
19-- >
20-- > Repr: an..3
21-- >
22-- > 2 DDMMYY
23-- > Calendar date: D = Day; M = Month; Y = Year.
24-- >
25-- > 3 MMDDYY
26-- > Calendar date: M = Month; D = Day; Y = Year.
27-- >
28-- > 4 DDMMCCYY
29-- > Calendar date C=Century; Y=Year; M=Month; D=Day.
30-- >
31-- > 5 DDMMCCYYHHMM
32-- > Calendar date and time: C=Century; Y=Year; M=Month;
33-- > D=Day; H=Hour; M=Minute.
34-- >
35-- > 101 YYMMDD
36-- > Calendar date: Y = Year; M = Month; D = Day.
37-- >
38-- > 102 CCYYMMDD
39-- > Calendar date: C = Century ; Y = Year ; M = Month ; D =
40-- > Day.
41-- >
42-- > 103 YYWWD
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.
46-- >
47-- > 105 YYDDD
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.
51-- >
52-- > 106 MMDD
53-- > Day of a month: M = Month; D = Day.
54-- >
55-- > 107 DDD
56-- > Day's number within a specific year: D = Day.
57-- >
58-- > 108 WW
59-- > Week's number within a specific year: W = Week.
60-- >
61-- > 109 MM
62-- > Month's number within a specific year: M = Month.
63-- >
64-- > 110 DD
65-- > Day's number within is a specific month: D = Day.
66-- >
67-- > 201 YYMMDDHHMM
68-- > Calendar date including time without seconds: Y = Year;
69-- > M = Month; D = Day; H = Hour; M = Minute.
70-- >
71-- > 202 YYMMDDHHMMSS
72-- > Calendar date including time with seconds: Y = Year; M =
73-- > Month; D = Day; H = Hour; m = Minutes = Seconds.
74-- >
75-- > 203 CCYYMMDDHHMM
76-- > Calendar date including time with minutes: C=Century;
77-- > Y=Year; M=Month; D=Day; H=Hour; M=Minutes.
78-- >
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.
83-- >
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).
89-- >
90-- > 301 YYMMDDHHMMZZZ
91-- > See 201 + Z = Time zone.
92-- >
93-- > 302 YYMMDDHHMMSSZZZ
94-- > See 202 + Z = Time zone.
95-- >
96-- > 303 CCYYMMDDHHMMZZZ
97-- > See 203 plus Z=Time zone.
98-- >
99-- > 304 CCYYMMDDHHMMSSZZZ
100-- > See 204 plus Z=Time zone.
101-- >
102-- > 305 MMDDHHMM
103-- > Month, day, hours, minutes; M = Month; D = Day; H =
104-- > Hour; M = Minute.
105-- >
106-- > 306 DDHHMM
107-- > Day, hours, minutes; D = Day; H = Hour; M = Minute.
108-- >
109-- > 401 HHMM
110-- > Time without seconds: H = Hour; m = Minute.
111-- >
112-- > 402 HHMMSS
113-- > Time with seconds: H = Hour; m = Minute; s = Seconds.
114-- >
115-- > 404 HHMMSSZZZ
116-- > See 402 plus Z=Time zone.
117-- >
118-- > 405 MMMMSS
119-- > Time without hours: m=minutes, s=seconds.
120-- >
121-- > 406 ZHHMM
122-- > Offset from Coordinated Universal Time (UTC) where Z is
123-- > plus (+) or minus (-).
124-- >
125-- > 501 HHMMHHMM
126-- > Time span without seconds: H = Hour; m = Minute;.
127-- >
128-- > 502 HHMMSS-HHMMSS
129-- > Format of period to be given without hyphen.
130-- >
131-- > 503 HHMMSSZZZ-HHMMSSZZZ
132-- > Format of period to be given without hyphen.
133-- >
134-- > 600 CC
135-- > Century.
136-- >
137-- > 601 YY
138-- > Calendar year: Y = Year.
139-- >
140-- > 602 CCYY
141-- > Calendar year including century: C = Century; Y = Year.
142-- >
143-- > 603 YYS
144-- > Semester in a calendar year: Y = Year; S = Semester.
145-- >
146-- > 604 CCYYS
147-- > Semester in a calendar year: C = Century; Y = Year; S =
148-- > Semester.
149-- >
150-- > 608 CCYYQ
151-- > Quarter in a calendar year: C = Century; Y = Year; Q =
152-- > Quarter.
153-- >
154-- > 609 YYMM
155-- > Month within a calendar year: Y = Year; M = Month.
156-- >
157-- > 610 CCYYMM
158-- > Month within a calendar year: CC = Century; Y = Year; M
159-- > = Month.
160-- >
161-- > 613 YYMMA
162-- > Format of period to be given without hyphen (A = ten
163-- > days period).
164-- >
165-- > 614 CCYYMMA
166-- > Format of period to be given without hyphen (A = ten
167-- > days period).
168-- >
169-- > 615 YYWW
170-- > Week within a calendar year: Y = Year; W = Week 1st week
171-- > of January = week 01.
172-- >
173-- > 616 CCYYWW
174-- > Week within a calendar year: CC = Century; Y = Year; W =
175-- > Week (1st week of January = week 01).
176-- >
177-- > 701 YY-YY
178-- > Format of period to be given in actual message without
179-- > hyphen.
180-- >
181-- > 702 CCYY-CCYY
182-- > Format of period to be given in actual message without
183-- > hyphen.
184-- >
185-- > 703 YYS-YYS
186-- > Format of period to be given without hyphen.
187-- >
188-- > 704 CCYYS-CCYYS
189-- > Format of period to be given in actual message without
190-- > hyphen.
191-- >
192-- > 705 YYPYYP
193-- > Format of period to be given without hyphen (P = period
194-- > of 4 months).
195-- >
196-- > 706 CCYYP-CCYYP
197-- > Format of period to be given without hyphen (P = period
198-- > of 4 months).
199-- >
200-- > 707 YYQ-YYQ
201-- > Format of period to be given without hyphen.
202-- >
203-- > 708 CCYYQ-CCYYQ
204-- > Format of period to be given in actual message without
205-- > hyphen.
206-- >
207-- > 709 YYMM-YYMM
208-- > Format of period to be given in actual message without
209-- > hyphen.
210-- >
211-- > 710 CCYYMM-CCYYMM
212-- > Format of period to be given in actual message without
213-- > hyphen.
214-- >
215-- > X 711 CCYYMMDD-CCYYMMDD
216-- > Format of period to be given in actual message without
217-- > hyphen.
218-- >
219-- > Note:
220-- > 1. This code value will be removed effective with
221-- > directory D.03B.
222-- >
223-- > 713 YYMMDDHHMM-YYMMDDHHMM
224-- > Format of period to be given in actual message without
225-- > hyphen.
226-- >
227-- > 715 YYWW-YYWW
228-- > Format of period to be given in actual message without
229-- > hyphen.
230-- >
231-- > 716 CCYYWW-CCYYWW
232-- > Format of period to be given without hyphen.
233-- >
234-- > 717 YYMMDD-YYMMDD
235-- > Format of period to be given in actual message without
236-- > hyphen.
237-- >
238-- > 718 CCYYMMDD-CCYYMMDD
239-- > Format of period to be given without hyphen.
240-- >
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.
245-- >
246-- > 720 DHHMM-DHHMM
247-- > Format of period to be given without hyphen (D=day of
248-- > the week, 1=Monday; 2=Tuesday; ... 7=Sunday).
249-- >
250-- > 801 Year
251-- > To indicate a quantity of years.
252-- >
253-- > 802 Month
254-- > To indicate a quantity of months.
255-- >
256-- > 803 Week
257-- > To indicate a quantity of weeks.
258-- >
259-- > 804 Day
260-- > To indicate a quantity of days.
261-- >
262-- > 805 Hour
263-- > To indicate a quantity of hours.
264-- >
265-- > 806 Minute
266-- > To indicate a quantity of minutes.
267-- >
268-- > 807 Second
269-- > To indicate a quantity of seconds.
270-- >
271-- > 808 Semester
272-- > To indicate a quantity of semesters (six months).
273-- >
274-- > 809 Four months period
275-- > To indicate a quantity of four months periods.
276-- >
277-- > 810 Trimester
278-- > To indicate a quantity of trimesters (three months).
279-- >
280-- > 811 Half month
281-- > To indicate a quantity of half months.
282-- >
283-- > 812 Ten days
284-- > To indicate a quantity of ten days periods.
285-- >
286-- > 813 Day of the week
287-- > Numeric representation of the day (Monday = 1).
288-- >
289-- > 814 Working days
290-- > Number of working days.
291simple2379 :: Parser Value
292simple2379 = simple "2379" (alphaNumeric `upTo` 3)