line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::EDI::CodeList::DateOrTimeOrPeriodFormatCode; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
49
|
use base 'Business::EDI::CodeList'; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
1032584
|
|
4
|
|
|
|
|
|
|
my $VERSION = 0.02; |
5
|
20
|
|
|
20
|
0
|
68
|
sub list_number {2379;} |
6
|
|
|
|
|
|
|
my $usage = 'C'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# 2379 Date or time or period format code [C] |
9
|
|
|
|
|
|
|
# Desc: Code specifying the representation of a date, time or |
10
|
|
|
|
|
|
|
# period. |
11
|
|
|
|
|
|
|
# Repr: an..3 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my %code_hash = ( |
14
|
|
|
|
|
|
|
'2' => [ 'DDMMYY', |
15
|
|
|
|
|
|
|
'Calendar date: D = Day; M = Month; Y = Year.' ], |
16
|
|
|
|
|
|
|
'3' => [ 'MMDDYY', |
17
|
|
|
|
|
|
|
'Calendar date: M = Month; D = Day; Y = Year.' ], |
18
|
|
|
|
|
|
|
'4' => [ 'DDMMCCYY', |
19
|
|
|
|
|
|
|
'Calendar date C=Century; Y=Year; M=Month; D=Day.' ], |
20
|
|
|
|
|
|
|
'5' => [ 'DDMMCCYYHHMM', |
21
|
|
|
|
|
|
|
'Calendar date and time: C=Century; Y=Year; M=Month; D=Day; H=Hour; M=Minute.' ], |
22
|
|
|
|
|
|
|
'6' => [ 'CCYYMMB', |
23
|
|
|
|
|
|
|
'Half-month: CC=century YY=year MM=month, B=1:first half month, B=2:second half month.' ], |
24
|
|
|
|
|
|
|
'7' => [ 'CCYYMMW', |
25
|
|
|
|
|
|
|
'Week within a calendar month: CC=century YY=year MM=month. W=1-5 first week to fifth week in a month.' ], |
26
|
|
|
|
|
|
|
'8' => [ 'CCYYMMDDS', |
27
|
|
|
|
|
|
|
'Shift within a calendar day: CC=century YY=year MM=month DD=day S=1-9 shift in a day.' ], |
28
|
|
|
|
|
|
|
'9' => [ 'CCYYMMDDPP', |
29
|
|
|
|
|
|
|
'Time period within a calendar day: CC=century YY=year MM=month DD=day PP=00-99 time period.' ], |
30
|
|
|
|
|
|
|
'10' => [ 'CCYYMMDDTHHMM', |
31
|
|
|
|
|
|
|
'Calendar date including time with minutes: C=Century; Y=Year; M=Month; D=Day; T=Time designator; H=Hour; M=Minutes. The character [T] shall be used as time designator to indicate the start of the representation of the time. For example: 20010912T1433.' ], |
32
|
|
|
|
|
|
|
'101' => [ 'YYMMDD', |
33
|
|
|
|
|
|
|
'Calendar date: Y = Year; M = Month; D = Day.' ], |
34
|
|
|
|
|
|
|
'102' => [ 'CCYYMMDD', |
35
|
|
|
|
|
|
|
'Calendar date: C = Century ; Y = Year ; M = Month ; D = Day.' ], |
36
|
|
|
|
|
|
|
'103' => [ 'YYWWD', |
37
|
|
|
|
|
|
|
'Calendar week day: Y = Year ; W = Week ; D = Day Week number 01 is always first week of January Day number 1 is always Monday.' ], |
38
|
|
|
|
|
|
|
'104' => [ 'MMWW-MMWW', |
39
|
|
|
|
|
|
|
'A period of time specified by giving the start week of a month followed by the end week of a month. Data is to be transmitted as consecutive characters without hyphen.' ], |
40
|
|
|
|
|
|
|
'105' => [ 'YYDDD', |
41
|
|
|
|
|
|
|
'Calendar day: Y = Year ; D = Day January the first = Day 001 Always start numbering the days of the year from January 1st through December 31st.' ], |
42
|
|
|
|
|
|
|
'106' => [ 'MMDD', |
43
|
|
|
|
|
|
|
'Day of a month: M = Month; D = Day.' ], |
44
|
|
|
|
|
|
|
'107' => [ 'DDD', |
45
|
|
|
|
|
|
|
"Day's number within a specific year: D = Day." ], |
46
|
|
|
|
|
|
|
'201' => [ 'YYMMDDHHMM', |
47
|
|
|
|
|
|
|
'Calendar date including time without seconds: Y = Year; M = Month; D = Day; H = Hour; M = Minute.' ], |
48
|
|
|
|
|
|
|
'202' => [ 'YYMMDDHHMMSS', |
49
|
|
|
|
|
|
|
'Calendar date including time with seconds: Y = Year; M = Month; D = Day; H = Hour; m = Minutes = Seconds.' ], |
50
|
|
|
|
|
|
|
'203' => [ 'CCYYMMDDHHMM', |
51
|
|
|
|
|
|
|
'Calendar date including time with minutes: C=Century; Y=Year; M=Month; D=Day; H=Hour; M=Minutes.' ], |
52
|
|
|
|
|
|
|
'204' => [ 'CCYYMMDDHHMMSS', |
53
|
|
|
|
|
|
|
'Calendar date including time with seconds: C=Century;Y=Year; M=Month;D=Day;H=Hour;M=Minute;S=Second.' ], |
54
|
|
|
|
|
|
|
'205' => [ 'CCYYMMDDHHMMZHHMM', |
55
|
|
|
|
|
|
|
'Calendar date including time and time zone expressed in hours and minutes. ZHHMM = time zone given as offset from Coordinated Universal Time (UTC).' ], |
56
|
|
|
|
|
|
|
'301' => [ 'YYMMDDHHMMZZZ', |
57
|
|
|
|
|
|
|
'See 201 + Z = Time zone.' ], |
58
|
|
|
|
|
|
|
'302' => [ 'YYMMDDHHMMSSZZZ', |
59
|
|
|
|
|
|
|
'See 202 + Z = Time zone.' ], |
60
|
|
|
|
|
|
|
'303' => [ 'CCYYMMDDHHMMZZZ', |
61
|
|
|
|
|
|
|
'See 203 plus Z=Time zone.' ], |
62
|
|
|
|
|
|
|
'304' => [ 'CCYYMMDDHHMMSSZZZ', |
63
|
|
|
|
|
|
|
'See 204 plus Z=Time zone.' ], |
64
|
|
|
|
|
|
|
'305' => [ 'MMDDHHMM', |
65
|
|
|
|
|
|
|
'Month, day, hours, minutes; M = Month; D = Day; H = Hour; M = Minute.' ], |
66
|
|
|
|
|
|
|
'306' => [ 'DDHHMM', |
67
|
|
|
|
|
|
|
'Day, hours, minutes; D = Day; H = Hour; M = Minute.' ], |
68
|
|
|
|
|
|
|
'401' => [ 'HHMM', |
69
|
|
|
|
|
|
|
'Time without seconds: H = Hour; m = Minute.' ], |
70
|
|
|
|
|
|
|
'402' => [ 'HHMMSS', |
71
|
|
|
|
|
|
|
'Time with seconds: H = Hour; m = Minute; s = Seconds.' ], |
72
|
|
|
|
|
|
|
'404' => [ 'HHMMSSZZZ', |
73
|
|
|
|
|
|
|
'See 402 plus Z=Time zone.' ], |
74
|
|
|
|
|
|
|
'405' => [ 'MMMMSS', |
75
|
|
|
|
|
|
|
'Time without hours: m=minutes, s=seconds.' ], |
76
|
|
|
|
|
|
|
'406' => [ 'ZHHMM', |
77
|
|
|
|
|
|
|
'Offset from Coordinated Universal Time (UTC) where Z is plus (+) or minus (-).' ], |
78
|
|
|
|
|
|
|
'501' => [ 'HHMMHHMM', |
79
|
|
|
|
|
|
|
'Time span without seconds: H = Hour; m = Minute;.' ], |
80
|
|
|
|
|
|
|
'502' => [ 'HHMMSS-HHMMSS', |
81
|
|
|
|
|
|
|
'A period of time specified by giving the start time followed by the end time (both expressed by hours minutes and seconds). Data is to be transmitted as consecutive characters without hyphen.' ], |
82
|
|
|
|
|
|
|
'503' => [ 'HHMMSSZZZ-HHMMSSZZZ', |
83
|
|
|
|
|
|
|
'A period of time specified by giving the start time followed by the end time (both expressed by hours minutes, seconds and time zone). Data is to be transmitted as consecutive characters without hyphen.' ], |
84
|
|
|
|
|
|
|
'602' => [ 'CCYY', |
85
|
|
|
|
|
|
|
'Calendar year including century: C = Century; Y = Year.' ], |
86
|
|
|
|
|
|
|
'603' => [ 'YYS', |
87
|
|
|
|
|
|
|
'Semester in a calendar year: Y = Year; S = Semester.' ], |
88
|
|
|
|
|
|
|
'604' => [ 'CCYYS', |
89
|
|
|
|
|
|
|
'Semester in a calendar year: C = Century; Y = Year; S = Semester.' ], |
90
|
|
|
|
|
|
|
'608' => [ 'CCYYQ', |
91
|
|
|
|
|
|
|
'Quarter in a calendar year: C = Century; Y = Year; Q = Quarter.' ], |
92
|
|
|
|
|
|
|
'609' => [ 'YYMM', |
93
|
|
|
|
|
|
|
'Month within a calendar year: Y = Year; M = Month.' ], |
94
|
|
|
|
|
|
|
'610' => [ 'CCYYMM', |
95
|
|
|
|
|
|
|
'Month within a calendar year: CC = Century; Y = Year; M = Month.' ], |
96
|
|
|
|
|
|
|
'613' => [ 'YYMMA', |
97
|
|
|
|
|
|
|
'To specifiy a ten-day period within a month of a year (A = ten day period).' ], |
98
|
|
|
|
|
|
|
'614' => [ 'CCYYMMA', |
99
|
|
|
|
|
|
|
'To specifiy a ten-day period within a month of a year, including century (A = ten day period).' ], |
100
|
|
|
|
|
|
|
'615' => [ 'YYWW', |
101
|
|
|
|
|
|
|
'Week within a calendar year: Y = Year; W = Week 1st week of January = week 01.' ], |
102
|
|
|
|
|
|
|
'616' => [ 'CCYYWW', |
103
|
|
|
|
|
|
|
'Week within a calendar year: CC = Century; Y = Year; W = Week (1st week of January = week 01).' ], |
104
|
|
|
|
|
|
|
'701' => [ 'YY-YY', |
105
|
|
|
|
|
|
|
'A period of time specified by giving the start year followed by the end year (both without century). Data is to be transmitted as consecutive characters without hyphen.' ], |
106
|
|
|
|
|
|
|
'702' => [ 'CCYY-CCYY', |
107
|
|
|
|
|
|
|
'A period of time specified by giving the start year followed by the end year (both including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
108
|
|
|
|
|
|
|
'703' => [ 'YYS-YYS', |
109
|
|
|
|
|
|
|
'A period of time specified by giving the start semester of a year followed by the end semester of a year (both not including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
110
|
|
|
|
|
|
|
'704' => [ 'CCYYS-CCYYS', |
111
|
|
|
|
|
|
|
'A period of time specified by giving the start semester of a year followed by the end semester of a year (both including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
112
|
|
|
|
|
|
|
'705' => [ 'YYPYYP', |
113
|
|
|
|
|
|
|
'Format of period to be given without hyphen (P = period of 4 months).' ], |
114
|
|
|
|
|
|
|
'706' => [ 'CCYYP-CCYYP', |
115
|
|
|
|
|
|
|
'Format of period to be given without hyphen (P = period of 4 months).' ], |
116
|
|
|
|
|
|
|
'707' => [ 'YYQ-YYQ', |
117
|
|
|
|
|
|
|
'A period of time specified by giving the start quarter of a year followed by the end quarter of year (both not including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
118
|
|
|
|
|
|
|
'708' => [ 'CCYYQ-CCYYQ', |
119
|
|
|
|
|
|
|
'A period of time specified by giving the start quarter of a year followed by the end quarter of year (both including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
120
|
|
|
|
|
|
|
'709' => [ 'YYMM-YYMM', |
121
|
|
|
|
|
|
|
'A period of time specified by giving the start month of a year followed by the end month of a year (both not including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
122
|
|
|
|
|
|
|
'710' => [ 'CCYYMM-CCYYMM', |
123
|
|
|
|
|
|
|
'A period of time specified by giving the start month of a year followed by the end month of a year (both including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
124
|
|
|
|
|
|
|
'713' => [ 'YYMMDDHHMM-YYMMDDHHMM', |
125
|
|
|
|
|
|
|
'A period of time specified by giving the start time followed by the end time (format year, month, day, hour and minute). Data is to be transmitted as consecutive characters without hyphen.' ], |
126
|
|
|
|
|
|
|
'715' => [ 'YYWW-YYWW', |
127
|
|
|
|
|
|
|
'A period of time specified by giving the start week of a year followed by the end week of year (both not including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
128
|
|
|
|
|
|
|
'716' => [ 'CCYYWW-CCYYWW', |
129
|
|
|
|
|
|
|
'A period of time specified by giving the start week of a year followed by the end week of year (both including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
130
|
|
|
|
|
|
|
'717' => [ 'YYMMDD-YYMMDD', |
131
|
|
|
|
|
|
|
'A period of time specified by giving the start date followed by the end date (both not including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
132
|
|
|
|
|
|
|
'718' => [ 'CCYYMMDD-CCYYMMDD', |
133
|
|
|
|
|
|
|
'A period of time specified by giving the start date followed by the end date (both including century). Data is to be transmitted as consecutive characters without hyphen.' ], |
134
|
|
|
|
|
|
|
'719' => [ 'CCYYMMDDHHMM-CCYYMMDDHHMM', |
135
|
|
|
|
|
|
|
'A period of time which includes the century, year, month, day, hour and minute. Format of period to be given in actual message without hyphen.' ], |
136
|
|
|
|
|
|
|
'720' => [ 'DHHMM-DHHMM', |
137
|
|
|
|
|
|
|
'Format of period to be given without hyphen (D=day of the week, 1=Monday; 2=Tuesday; ... 7=Sunday).' ], |
138
|
|
|
|
|
|
|
'801' => [ 'Year', |
139
|
|
|
|
|
|
|
'To indicate a quantity of years.' ], |
140
|
|
|
|
|
|
|
'802' => [ 'Month', |
141
|
|
|
|
|
|
|
'To indicate a quantity of months.' ], |
142
|
|
|
|
|
|
|
'803' => [ 'Week', |
143
|
|
|
|
|
|
|
'To indicate a quantity of weeks.' ], |
144
|
|
|
|
|
|
|
'804' => [ 'Day', |
145
|
|
|
|
|
|
|
'To indicate a quantity of days.' ], |
146
|
|
|
|
|
|
|
'805' => [ 'Hour', |
147
|
|
|
|
|
|
|
'To indicate a quantity of hours.' ], |
148
|
|
|
|
|
|
|
'806' => [ 'Minute', |
149
|
|
|
|
|
|
|
'To indicate a quantity of minutes.' ], |
150
|
|
|
|
|
|
|
'807' => [ 'Second', |
151
|
|
|
|
|
|
|
'To indicate a quantity of seconds.' ], |
152
|
|
|
|
|
|
|
'808' => [ 'Semester', |
153
|
|
|
|
|
|
|
'To indicate a quantity of semesters (six months).' ], |
154
|
|
|
|
|
|
|
'809' => [ 'Four months period', |
155
|
|
|
|
|
|
|
'To indicate a quantity of four months periods.' ], |
156
|
|
|
|
|
|
|
'810' => [ 'Trimester', |
157
|
|
|
|
|
|
|
'To indicate a quantity of trimesters (three months).' ], |
158
|
|
|
|
|
|
|
'811' => [ 'Half month', |
159
|
|
|
|
|
|
|
'To indicate a quantity of half months.' ], |
160
|
|
|
|
|
|
|
'812' => [ 'Ten days', |
161
|
|
|
|
|
|
|
'To indicate a quantity of ten days periods.' ], |
162
|
|
|
|
|
|
|
'813' => [ 'Day of the week', |
163
|
|
|
|
|
|
|
'Numeric representation of the day (Monday = 1).' ], |
164
|
|
|
|
|
|
|
'814' => [ 'Working days', |
165
|
|
|
|
|
|
|
'Number of working days.' ], |
166
|
|
|
|
|
|
|
); |
167
|
20
|
|
|
20
|
0
|
64
|
sub get_codes { return \%code_hash; } |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
1; |