]>
Commit | Line | Data |
---|---|---|
1 | {-# LANGUAGE OverloadedStrings #-} | |
2 | ||
3 | ---- Machine generated code. | |
4 | ---- Output of edi-parser-scaffolder | |
5 | ||
6 | module Text.Edifact.D96A.Simples.S2379 | |
7 | ( simple2379 | |
8 | ) where | |
9 | ||
10 | import Text.Edifact.Parsing | |
11 | import Text.Edifact.Types (Value) | |
12 | ||
13 | -- | Derived from this specification: | |
14 | -- | |
15 | -- > 2379 Date/time/period format qualifier | |
16 | -- > | |
17 | -- > Desc: Specification of the representation of a date, a date and time | |
18 | -- > or of a period. | |
19 | -- > | |
20 | -- > Repr: an..3 | |
21 | -- > | |
22 | -- > 2 DDMMYY | |
23 | -- > Calendar date: D = Day; M = Month; Y = Year. | |
24 | -- > 3 MMDDYY | |
25 | -- > Calendar date: M = Month; D = Day; Y = Year. | |
26 | -- > 101 YYMMDD | |
27 | -- > Calendar date: Y = Year; M = Month; D = Day. | |
28 | -- > 102 CCYYMMDD | |
29 | -- > Calendar date: C = Century ; Y = Year ; M = Month ; D = | |
30 | -- > Day. | |
31 | -- > 103 YYWWD | |
32 | -- > Calendar week day: Y = Year ; W = Week ; D = Day Week | |
33 | -- > number 01 is always first week of January Day number 1 is | |
34 | -- > always Monday. | |
35 | -- > 105 YYDDD | |
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. | |
39 | -- > 106 MMDD | |
40 | -- > Day of a month: M = Month; D = Day. | |
41 | -- > 107 DDD | |
42 | -- > Day's number within a specific year: D = Day. | |
43 | -- > 108 WW | |
44 | -- > Week's number within a specific year: W = Week. | |
45 | -- > 109 MM | |
46 | -- > Month's number within a specific year: M = Month. | |
47 | -- > 110 DD | |
48 | -- > Day's number within is a specific month: D = Day. | |
49 | -- > 201 YYMMDDHHMM | |
50 | -- > Calendar date including time without seconds: Y = Year; M | |
51 | -- > = Month; D = Day; H = Hour; M = Minute. | |
52 | -- > 202 YYMMDDHHMMSS | |
53 | -- > Calendar date including time with seconds: Y = Year; M = | |
54 | -- > Month; D = Day; H = Hour; m = Minutes = Seconds. | |
55 | -- > 203 CCYYMMDDHHMM | |
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. | |
69 | -- > 305 MMDDHHMM | |
70 | -- > Month, day, hours, minutes; | |
71 | -- > M = Month; D = Day; H = Hour; M = Minute. | |
72 | -- > 306 DDHHMM | |
73 | -- > Day, hours, minutes; | |
74 | -- > D = Day; H = Hour; M = Minute. | |
75 | -- > 401 HHMM | |
76 | -- > Time without seconds: H = Hour; m = Minute. | |
77 | -- > 402 HHMMSS | |
78 | -- > Time with seconds: H = Hour; m = Minute; s = Seconds. | |
79 | -- > 404 HHMMSSZZZ | |
80 | -- > See 402 plus Z=Time zone. | |
81 | -- > 405 MMMMSS | |
82 | -- > Time without hours: m=minutes, s=seconds. | |
83 | -- > 501 HHMMHHMM | |
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. | |
89 | -- > 600 CC | |
90 | -- > Century. | |
91 | -- > 601 YY | |
92 | -- > Calendar year: Y = Year. | |
93 | -- > 602 CCYY | |
94 | -- > Calendar year including century: C = Century; Y = Year. | |
95 | -- > 603 YYS | |
96 | -- > Semester in a calendar year: Y = Year; S = Semester. | |
97 | -- > 604 CCYYS | |
98 | -- > Semester in a calendar year: C = Century; Y = Year; S = | |
99 | -- > Semester. | |
100 | -- > 608 CCYYQ | |
101 | -- > Quarter in a calendar year: C = Century; Y = Year; Q = | |
102 | -- > Quarter. | |
103 | -- > 609 YYMM | |
104 | -- > Month within a calendar year: Y = Year; M = Month. | |
105 | -- > 610 CCYYMM | |
106 | -- > Month within a calendar year: CC = Century; Y = Year; M = | |
107 | -- > Month. | |
108 | -- > 613 YYMMA | |
109 | -- > Format of period to be given without hyphen (A = ten days | |
110 | -- > period). | |
111 | -- > 614 CCYYMMA | |
112 | -- > Format of period to be given without hyphen (A = ten days | |
113 | -- > period). | |
114 | -- > 615 YYWW | |
115 | -- > Week within a calendar year: Y = Year; W = Week 1st week | |
116 | -- > of January = week 01. | |
117 | -- > 616 CCYYWW | |
118 | -- > Week within a calendar year: CC = Century; Y = Year; W = | |
119 | -- > Week (1st week of January = week 01). | |
120 | -- > 701 YY-YY | |
121 | -- > Format of period to be given in actual message without | |
122 | -- > hyphen. | |
123 | -- > 702 CCYY-CCYY | |
124 | -- > Format of period to be given in actual message without | |
125 | -- > hyphen. | |
126 | -- > 703 YYS-YYS | |
127 | -- > Format of period to be given without hyphen. | |
128 | -- > 704 CCYYS-CCYYS | |
129 | -- > Format of period to be given in actual message without | |
130 | -- > hyphen. | |
131 | -- > 705 YYPYYP | |
132 | -- > Format of period to be given without hyphen (P = period | |
133 | -- > of 4 months). | |
134 | -- > 706 CCYYP-CCYYP | |
135 | -- > Format of period to be given without hyphen (P = period | |
136 | -- > of 4 months). | |
137 | -- > 707 YYQ-YYQ | |
138 | -- > Format of period to be given without hyphen. | |
139 | -- > 708 CCYYQ-CCYYQ | |
140 | -- > Format of period to be given in actual message without | |
141 | -- > hyphen. | |
142 | -- > 709 YYMM-YYMM | |
143 | -- > Format of period to be given in actual message without | |
144 | -- > hyphen. | |
145 | -- > 710 CCYYMM-CCYYMM | |
146 | -- > Format of period to be given in actual message without | |
147 | -- > hyphen. | |
148 | -- > 711 CCYYMMDD-CCYYMMDD | |
149 | -- > Format of period to be given in actual message without | |
150 | -- > hyphen. | |
151 | -- > 713 YYMMDDHHMM-YYMMDDHHMM | |
152 | -- > Format of period to be given in actual message without | |
153 | -- > hyphen. | |
154 | -- > 715 YYWW-YYWW | |
155 | -- > Format of period to be given in actual message without | |
156 | -- > hyphen. | |
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 | |
161 | -- > hyphen. | |
162 | -- > 718 CCYYMMDD-CCYYMMDD | |
163 | -- > Format of period to be given without hyphen. | |
164 | -- > 801 Year | |
165 | -- > To indicate a quantity of years. | |
166 | -- > 802 Month | |
167 | -- > To indicate a quantity of months. | |
168 | -- > 803 Week | |
169 | -- > To indicate a quantity of weeks. | |
170 | -- > 804 Day | |
171 | -- > To indicate a quantity of days. | |
172 | -- > 805 Hour | |
173 | -- > To indicate a quantity of hours. | |
174 | -- > 806 Minute | |
175 | -- > To indicate a quantity of minutes. | |
176 | -- > 807 Second | |
177 | -- > To indicate a quantity of seconds. | |
178 | -- > 808 Semester | |
179 | -- > To indicate a quantity of semesters (six months). | |
180 | -- > 809 Four months period | |
181 | -- > To indicate a quantity of four months periods. | |
182 | -- > 810 Trimester | |
183 | -- > To indicate a quantity of trimesters (three months). | |
184 | -- > 811 Half month | |
185 | -- > To indicate a quantity of half months. | |
186 | -- > 812 Ten days | |
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) |