line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Zh::Hans::Sg - Package for language Chinese |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/zh_Hans_SG.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:42:18 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
991
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
14
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
22
|
|
15
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
1
|
|
|
1
|
|
83
|
use mro 'c3'; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
4
|
use utf8; |
|
1
|
|
|
|
|
19
|
|
|
1
|
|
|
|
|
6
|
|
21
|
1
|
|
|
1
|
|
22
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
22
|
1
|
|
|
1
|
|
36
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
23
|
1
|
|
|
1
|
|
101
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
24
|
1
|
|
|
1
|
|
831
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Zh::Hans'); |
26
|
|
|
|
|
|
|
has 'units' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => HashRef[HashRef[HashRef[Str]]], |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => sub { { |
31
|
|
|
|
|
|
|
'long' => { |
32
|
|
|
|
|
|
|
'karat' => { |
33
|
|
|
|
|
|
|
'name' => q(开), |
34
|
|
|
|
|
|
|
'other' => q({0}开), |
35
|
|
|
|
|
|
|
}, |
36
|
|
|
|
|
|
|
'kelvin' => { |
37
|
|
|
|
|
|
|
'name' => q(开氏度), |
38
|
|
|
|
|
|
|
'other' => q({0}开氏度), |
39
|
|
|
|
|
|
|
}, |
40
|
|
|
|
|
|
|
'per' => { |
41
|
|
|
|
|
|
|
'1' => q({0}/{1}), |
42
|
|
|
|
|
|
|
}, |
43
|
|
|
|
|
|
|
'second' => { |
44
|
|
|
|
|
|
|
'other' => q({0}秒), |
45
|
|
|
|
|
|
|
}, |
46
|
|
|
|
|
|
|
}, |
47
|
|
|
|
|
|
|
'narrow' => { |
48
|
|
|
|
|
|
|
'foot' => { |
49
|
|
|
|
|
|
|
'other' => q({0}英尺), |
50
|
|
|
|
|
|
|
}, |
51
|
|
|
|
|
|
|
'inch' => { |
52
|
|
|
|
|
|
|
'other' => q({0}英寸), |
53
|
|
|
|
|
|
|
}, |
54
|
|
|
|
|
|
|
'light-year' => { |
55
|
|
|
|
|
|
|
'other' => q({0}光年), |
56
|
|
|
|
|
|
|
}, |
57
|
|
|
|
|
|
|
'mile' => { |
58
|
|
|
|
|
|
|
'other' => q({0}英里), |
59
|
|
|
|
|
|
|
}, |
60
|
|
|
|
|
|
|
'picometer' => { |
61
|
|
|
|
|
|
|
'other' => q({0}皮米), |
62
|
|
|
|
|
|
|
}, |
63
|
|
|
|
|
|
|
'yard' => { |
64
|
|
|
|
|
|
|
'other' => q({0}码), |
65
|
|
|
|
|
|
|
}, |
66
|
|
|
|
|
|
|
}, |
67
|
|
|
|
|
|
|
'short' => { |
68
|
|
|
|
|
|
|
'g-force' => { |
69
|
|
|
|
|
|
|
'other' => q({0}G力), |
70
|
|
|
|
|
|
|
}, |
71
|
|
|
|
|
|
|
'karat' => { |
72
|
|
|
|
|
|
|
'name' => q(开), |
73
|
|
|
|
|
|
|
'other' => q({0}开), |
74
|
|
|
|
|
|
|
}, |
75
|
|
|
|
|
|
|
'kelvin' => { |
76
|
|
|
|
|
|
|
'name' => q(开氏度), |
77
|
|
|
|
|
|
|
'other' => q({0}°K), |
78
|
|
|
|
|
|
|
}, |
79
|
|
|
|
|
|
|
}, |
80
|
|
|
|
|
|
|
} } |
81
|
|
|
|
|
|
|
); |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
has 'currencies' => ( |
84
|
|
|
|
|
|
|
is => 'ro', |
85
|
|
|
|
|
|
|
isa => HashRef, |
86
|
|
|
|
|
|
|
init_arg => undef, |
87
|
|
|
|
|
|
|
default => sub { { |
88
|
|
|
|
|
|
|
'ANG' => { |
89
|
|
|
|
|
|
|
display_name => { |
90
|
|
|
|
|
|
|
'other' => q(荷兰安的列斯盾), |
91
|
|
|
|
|
|
|
}, |
92
|
|
|
|
|
|
|
}, |
93
|
|
|
|
|
|
|
'CNY' => { |
94
|
|
|
|
|
|
|
symbol => 'CN¥', |
95
|
|
|
|
|
|
|
}, |
96
|
|
|
|
|
|
|
'NIO' => { |
97
|
|
|
|
|
|
|
display_name => { |
98
|
|
|
|
|
|
|
'other' => q(尼加拉瓜科多巴), |
99
|
|
|
|
|
|
|
}, |
100
|
|
|
|
|
|
|
}, |
101
|
|
|
|
|
|
|
'SGD' => { |
102
|
|
|
|
|
|
|
symbol => '$', |
103
|
|
|
|
|
|
|
}, |
104
|
|
|
|
|
|
|
'XAG' => { |
105
|
|
|
|
|
|
|
display_name => { |
106
|
|
|
|
|
|
|
'currency' => q(白银), |
107
|
|
|
|
|
|
|
}, |
108
|
|
|
|
|
|
|
}, |
109
|
|
|
|
|
|
|
} }, |
110
|
|
|
|
|
|
|
); |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
has 'day_period_data' => ( |
114
|
|
|
|
|
|
|
is => 'ro', |
115
|
|
|
|
|
|
|
isa => CodeRef, |
116
|
|
|
|
|
|
|
init_arg => undef, |
117
|
|
|
|
|
|
|
default => sub { sub { |
118
|
|
|
|
|
|
|
# Time in hhmm format |
119
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
120
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
121
|
|
|
|
|
|
|
SWITCH: |
122
|
|
|
|
|
|
|
for ($type) { |
123
|
|
|
|
|
|
|
if ($_ eq 'buddhist') { |
124
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
125
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
126
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
127
|
|
|
|
|
|
|
&& $time < 1300; |
128
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
129
|
|
|
|
|
|
|
&& $time < 1900; |
130
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
131
|
|
|
|
|
|
|
&& $time < 2400; |
132
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
133
|
|
|
|
|
|
|
&& $time < 800; |
134
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
135
|
|
|
|
|
|
|
&& $time < 1200; |
136
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
137
|
|
|
|
|
|
|
&& $time < 500; |
138
|
|
|
|
|
|
|
} |
139
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
140
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
141
|
|
|
|
|
|
|
&& $time < 1300; |
142
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
143
|
|
|
|
|
|
|
&& $time < 1900; |
144
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
145
|
|
|
|
|
|
|
&& $time < 2400; |
146
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
147
|
|
|
|
|
|
|
&& $time < 800; |
148
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
149
|
|
|
|
|
|
|
&& $time < 1200; |
150
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
151
|
|
|
|
|
|
|
&& $time < 500; |
152
|
|
|
|
|
|
|
} |
153
|
|
|
|
|
|
|
last SWITCH; |
154
|
|
|
|
|
|
|
} |
155
|
|
|
|
|
|
|
if ($_ eq 'chinese') { |
156
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
157
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
158
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
159
|
|
|
|
|
|
|
&& $time < 1300; |
160
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
161
|
|
|
|
|
|
|
&& $time < 1900; |
162
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
163
|
|
|
|
|
|
|
&& $time < 2400; |
164
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
165
|
|
|
|
|
|
|
&& $time < 800; |
166
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
167
|
|
|
|
|
|
|
&& $time < 1200; |
168
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
169
|
|
|
|
|
|
|
&& $time < 500; |
170
|
|
|
|
|
|
|
} |
171
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
172
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
173
|
|
|
|
|
|
|
&& $time < 1300; |
174
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
175
|
|
|
|
|
|
|
&& $time < 1900; |
176
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
177
|
|
|
|
|
|
|
&& $time < 2400; |
178
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
179
|
|
|
|
|
|
|
&& $time < 800; |
180
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
181
|
|
|
|
|
|
|
&& $time < 1200; |
182
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
183
|
|
|
|
|
|
|
&& $time < 500; |
184
|
|
|
|
|
|
|
} |
185
|
|
|
|
|
|
|
last SWITCH; |
186
|
|
|
|
|
|
|
} |
187
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
188
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
189
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
190
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
191
|
|
|
|
|
|
|
&& $time < 1300; |
192
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
193
|
|
|
|
|
|
|
&& $time < 1900; |
194
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
195
|
|
|
|
|
|
|
&& $time < 2400; |
196
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
197
|
|
|
|
|
|
|
&& $time < 800; |
198
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
199
|
|
|
|
|
|
|
&& $time < 1200; |
200
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
201
|
|
|
|
|
|
|
&& $time < 500; |
202
|
|
|
|
|
|
|
} |
203
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
204
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
205
|
|
|
|
|
|
|
&& $time < 1300; |
206
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
207
|
|
|
|
|
|
|
&& $time < 1900; |
208
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
209
|
|
|
|
|
|
|
&& $time < 2400; |
210
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
211
|
|
|
|
|
|
|
&& $time < 800; |
212
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
213
|
|
|
|
|
|
|
&& $time < 1200; |
214
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
215
|
|
|
|
|
|
|
&& $time < 500; |
216
|
|
|
|
|
|
|
} |
217
|
|
|
|
|
|
|
last SWITCH; |
218
|
|
|
|
|
|
|
} |
219
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
220
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
221
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
222
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
223
|
|
|
|
|
|
|
&& $time < 1300; |
224
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
225
|
|
|
|
|
|
|
&& $time < 1900; |
226
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
227
|
|
|
|
|
|
|
&& $time < 2400; |
228
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
229
|
|
|
|
|
|
|
&& $time < 800; |
230
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
231
|
|
|
|
|
|
|
&& $time < 1200; |
232
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
233
|
|
|
|
|
|
|
&& $time < 500; |
234
|
|
|
|
|
|
|
} |
235
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
236
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
237
|
|
|
|
|
|
|
&& $time < 1300; |
238
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
239
|
|
|
|
|
|
|
&& $time < 1900; |
240
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
241
|
|
|
|
|
|
|
&& $time < 2400; |
242
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
243
|
|
|
|
|
|
|
&& $time < 800; |
244
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
245
|
|
|
|
|
|
|
&& $time < 1200; |
246
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
247
|
|
|
|
|
|
|
&& $time < 500; |
248
|
|
|
|
|
|
|
} |
249
|
|
|
|
|
|
|
last SWITCH; |
250
|
|
|
|
|
|
|
} |
251
|
|
|
|
|
|
|
if ($_ eq 'islamic') { |
252
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
253
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
254
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
255
|
|
|
|
|
|
|
&& $time < 1300; |
256
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
257
|
|
|
|
|
|
|
&& $time < 1900; |
258
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
259
|
|
|
|
|
|
|
&& $time < 2400; |
260
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
261
|
|
|
|
|
|
|
&& $time < 800; |
262
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
263
|
|
|
|
|
|
|
&& $time < 1200; |
264
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
265
|
|
|
|
|
|
|
&& $time < 500; |
266
|
|
|
|
|
|
|
} |
267
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
268
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
269
|
|
|
|
|
|
|
&& $time < 1300; |
270
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
271
|
|
|
|
|
|
|
&& $time < 1900; |
272
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
273
|
|
|
|
|
|
|
&& $time < 2400; |
274
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
275
|
|
|
|
|
|
|
&& $time < 800; |
276
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
277
|
|
|
|
|
|
|
&& $time < 1200; |
278
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
279
|
|
|
|
|
|
|
&& $time < 500; |
280
|
|
|
|
|
|
|
} |
281
|
|
|
|
|
|
|
last SWITCH; |
282
|
|
|
|
|
|
|
} |
283
|
|
|
|
|
|
|
if ($_ eq 'japanese') { |
284
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
285
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
286
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
287
|
|
|
|
|
|
|
&& $time < 1300; |
288
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
289
|
|
|
|
|
|
|
&& $time < 1900; |
290
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
291
|
|
|
|
|
|
|
&& $time < 2400; |
292
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
293
|
|
|
|
|
|
|
&& $time < 800; |
294
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
295
|
|
|
|
|
|
|
&& $time < 1200; |
296
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
297
|
|
|
|
|
|
|
&& $time < 500; |
298
|
|
|
|
|
|
|
} |
299
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
300
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
301
|
|
|
|
|
|
|
&& $time < 1300; |
302
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
303
|
|
|
|
|
|
|
&& $time < 1900; |
304
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
305
|
|
|
|
|
|
|
&& $time < 2400; |
306
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
307
|
|
|
|
|
|
|
&& $time < 800; |
308
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
309
|
|
|
|
|
|
|
&& $time < 1200; |
310
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
311
|
|
|
|
|
|
|
&& $time < 500; |
312
|
|
|
|
|
|
|
} |
313
|
|
|
|
|
|
|
last SWITCH; |
314
|
|
|
|
|
|
|
} |
315
|
|
|
|
|
|
|
if ($_ eq 'roc') { |
316
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
317
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
318
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
319
|
|
|
|
|
|
|
&& $time < 1300; |
320
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
321
|
|
|
|
|
|
|
&& $time < 1900; |
322
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
323
|
|
|
|
|
|
|
&& $time < 2400; |
324
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
325
|
|
|
|
|
|
|
&& $time < 800; |
326
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
327
|
|
|
|
|
|
|
&& $time < 1200; |
328
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
329
|
|
|
|
|
|
|
&& $time < 500; |
330
|
|
|
|
|
|
|
} |
331
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
332
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
333
|
|
|
|
|
|
|
&& $time < 1300; |
334
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
335
|
|
|
|
|
|
|
&& $time < 1900; |
336
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
337
|
|
|
|
|
|
|
&& $time < 2400; |
338
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
339
|
|
|
|
|
|
|
&& $time < 800; |
340
|
|
|
|
|
|
|
return 'morning2' if $time >= 800 |
341
|
|
|
|
|
|
|
&& $time < 1200; |
342
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
343
|
|
|
|
|
|
|
&& $time < 500; |
344
|
|
|
|
|
|
|
} |
345
|
|
|
|
|
|
|
last SWITCH; |
346
|
|
|
|
|
|
|
} |
347
|
|
|
|
|
|
|
} |
348
|
|
|
|
|
|
|
} }, |
349
|
|
|
|
|
|
|
); |
350
|
|
|
|
|
|
|
|
351
|
|
|
|
|
|
|
around day_period_data => sub { |
352
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
353
|
|
|
|
|
|
|
return $self->$orig; |
354
|
|
|
|
|
|
|
}; |
355
|
|
|
|
|
|
|
|
356
|
|
|
|
|
|
|
has 'eras' => ( |
357
|
|
|
|
|
|
|
is => 'ro', |
358
|
|
|
|
|
|
|
isa => HashRef, |
359
|
|
|
|
|
|
|
init_arg => undef, |
360
|
|
|
|
|
|
|
default => sub { { |
361
|
|
|
|
|
|
|
'buddhist' => { |
362
|
|
|
|
|
|
|
}, |
363
|
|
|
|
|
|
|
'chinese' => { |
364
|
|
|
|
|
|
|
}, |
365
|
|
|
|
|
|
|
'generic' => { |
366
|
|
|
|
|
|
|
}, |
367
|
|
|
|
|
|
|
'gregorian' => { |
368
|
|
|
|
|
|
|
}, |
369
|
|
|
|
|
|
|
'islamic' => { |
370
|
|
|
|
|
|
|
}, |
371
|
|
|
|
|
|
|
'japanese' => { |
372
|
|
|
|
|
|
|
}, |
373
|
|
|
|
|
|
|
'roc' => { |
374
|
|
|
|
|
|
|
}, |
375
|
|
|
|
|
|
|
} }, |
376
|
|
|
|
|
|
|
); |
377
|
|
|
|
|
|
|
|
378
|
|
|
|
|
|
|
has 'date_formats' => ( |
379
|
|
|
|
|
|
|
is => 'ro', |
380
|
|
|
|
|
|
|
isa => HashRef, |
381
|
|
|
|
|
|
|
init_arg => undef, |
382
|
|
|
|
|
|
|
default => sub { { |
383
|
|
|
|
|
|
|
'buddhist' => { |
384
|
|
|
|
|
|
|
'short' => q{Gd/M/yy}, |
385
|
|
|
|
|
|
|
}, |
386
|
|
|
|
|
|
|
'chinese' => { |
387
|
|
|
|
|
|
|
'full' => q{U年MMMd日EEEE}, |
388
|
|
|
|
|
|
|
'long' => q{U年MMMd日}, |
389
|
|
|
|
|
|
|
'medium' => q{U年MMMd日}, |
390
|
|
|
|
|
|
|
}, |
391
|
|
|
|
|
|
|
'generic' => { |
392
|
|
|
|
|
|
|
'short' => q{dd/MM/yyGGGGG}, |
393
|
|
|
|
|
|
|
}, |
394
|
|
|
|
|
|
|
'gregorian' => { |
395
|
|
|
|
|
|
|
'short' => q{dd/MM/yy}, |
396
|
|
|
|
|
|
|
}, |
397
|
|
|
|
|
|
|
'islamic' => { |
398
|
|
|
|
|
|
|
'short' => q{Gd/M/yy}, |
399
|
|
|
|
|
|
|
}, |
400
|
|
|
|
|
|
|
'japanese' => { |
401
|
|
|
|
|
|
|
'short' => q{Gd/M/yy}, |
402
|
|
|
|
|
|
|
}, |
403
|
|
|
|
|
|
|
'roc' => { |
404
|
|
|
|
|
|
|
'short' => q{Gd/M/yy}, |
405
|
|
|
|
|
|
|
}, |
406
|
|
|
|
|
|
|
} }, |
407
|
|
|
|
|
|
|
); |
408
|
|
|
|
|
|
|
|
409
|
|
|
|
|
|
|
has 'time_formats' => ( |
410
|
|
|
|
|
|
|
is => 'ro', |
411
|
|
|
|
|
|
|
isa => HashRef, |
412
|
|
|
|
|
|
|
init_arg => undef, |
413
|
|
|
|
|
|
|
default => sub { { |
414
|
|
|
|
|
|
|
'buddhist' => { |
415
|
|
|
|
|
|
|
}, |
416
|
|
|
|
|
|
|
'chinese' => { |
417
|
|
|
|
|
|
|
}, |
418
|
|
|
|
|
|
|
'generic' => { |
419
|
|
|
|
|
|
|
}, |
420
|
|
|
|
|
|
|
'gregorian' => { |
421
|
|
|
|
|
|
|
}, |
422
|
|
|
|
|
|
|
'islamic' => { |
423
|
|
|
|
|
|
|
}, |
424
|
|
|
|
|
|
|
'japanese' => { |
425
|
|
|
|
|
|
|
}, |
426
|
|
|
|
|
|
|
'roc' => { |
427
|
|
|
|
|
|
|
}, |
428
|
|
|
|
|
|
|
} }, |
429
|
|
|
|
|
|
|
); |
430
|
|
|
|
|
|
|
|
431
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
432
|
|
|
|
|
|
|
is => 'ro', |
433
|
|
|
|
|
|
|
isa => HashRef, |
434
|
|
|
|
|
|
|
init_arg => undef, |
435
|
|
|
|
|
|
|
default => sub { { |
436
|
|
|
|
|
|
|
'buddhist' => { |
437
|
|
|
|
|
|
|
}, |
438
|
|
|
|
|
|
|
'chinese' => { |
439
|
|
|
|
|
|
|
}, |
440
|
|
|
|
|
|
|
'generic' => { |
441
|
|
|
|
|
|
|
}, |
442
|
|
|
|
|
|
|
'gregorian' => { |
443
|
|
|
|
|
|
|
}, |
444
|
|
|
|
|
|
|
'islamic' => { |
445
|
|
|
|
|
|
|
}, |
446
|
|
|
|
|
|
|
'japanese' => { |
447
|
|
|
|
|
|
|
}, |
448
|
|
|
|
|
|
|
'roc' => { |
449
|
|
|
|
|
|
|
}, |
450
|
|
|
|
|
|
|
} }, |
451
|
|
|
|
|
|
|
); |
452
|
|
|
|
|
|
|
|
453
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
454
|
|
|
|
|
|
|
is => 'ro', |
455
|
|
|
|
|
|
|
isa => HashRef, |
456
|
|
|
|
|
|
|
init_arg => undef, |
457
|
|
|
|
|
|
|
default => sub { { |
458
|
|
|
|
|
|
|
'generic' => { |
459
|
|
|
|
|
|
|
MEd => q{M-dE}, |
460
|
|
|
|
|
|
|
MMMMdd => q{M月d日}, |
461
|
|
|
|
|
|
|
MMdd => q{MM-dd}, |
462
|
|
|
|
|
|
|
Md => q{M-d}, |
463
|
|
|
|
|
|
|
yyyyMEd => q{Gy年M月d日,E}, |
464
|
|
|
|
|
|
|
yyyyMd => q{Gy年M月d日}, |
465
|
|
|
|
|
|
|
}, |
466
|
|
|
|
|
|
|
'gregorian' => { |
467
|
|
|
|
|
|
|
MEd => q{M-dE}, |
468
|
|
|
|
|
|
|
MMM => q{M月}, |
469
|
|
|
|
|
|
|
MMMMdd => q{M月d日}, |
470
|
|
|
|
|
|
|
MMdd => q{MM-dd}, |
471
|
|
|
|
|
|
|
Md => q{M-d}, |
472
|
|
|
|
|
|
|
yMEd => q{y年M月d日,E}, |
473
|
|
|
|
|
|
|
yMd => q{y年M月d日}, |
474
|
|
|
|
|
|
|
}, |
475
|
|
|
|
|
|
|
'japanese' => { |
476
|
|
|
|
|
|
|
MEd => q{M/dE}, |
477
|
|
|
|
|
|
|
Md => q{M/d}, |
478
|
|
|
|
|
|
|
}, |
479
|
|
|
|
|
|
|
'roc' => { |
480
|
|
|
|
|
|
|
MEd => q{M-dE}, |
481
|
|
|
|
|
|
|
MMM => q{M月}, |
482
|
|
|
|
|
|
|
Md => q{M-d}, |
483
|
|
|
|
|
|
|
}, |
484
|
|
|
|
|
|
|
} }, |
485
|
|
|
|
|
|
|
); |
486
|
|
|
|
|
|
|
|
487
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
488
|
|
|
|
|
|
|
is => 'ro', |
489
|
|
|
|
|
|
|
isa => HashRef, |
490
|
|
|
|
|
|
|
init_arg => undef, |
491
|
|
|
|
|
|
|
default => sub { { |
492
|
|
|
|
|
|
|
} }, |
493
|
|
|
|
|
|
|
); |
494
|
|
|
|
|
|
|
|
495
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
496
|
|
|
|
|
|
|
is => 'ro', |
497
|
|
|
|
|
|
|
isa => HashRef, |
498
|
|
|
|
|
|
|
init_arg => undef, |
499
|
|
|
|
|
|
|
default => sub { { |
500
|
|
|
|
|
|
|
'generic' => { |
501
|
|
|
|
|
|
|
Hmv => { |
502
|
|
|
|
|
|
|
H => q{vHH:mm–HH:mm}, |
503
|
|
|
|
|
|
|
m => q{vHH:mm–HH:mm}, |
504
|
|
|
|
|
|
|
}, |
505
|
|
|
|
|
|
|
Hv => { |
506
|
|
|
|
|
|
|
H => q{vHH–HH}, |
507
|
|
|
|
|
|
|
}, |
508
|
|
|
|
|
|
|
MEd => { |
509
|
|
|
|
|
|
|
M => q{M-dE至M-dE}, |
510
|
|
|
|
|
|
|
d => q{M-dE至M-dE}, |
511
|
|
|
|
|
|
|
}, |
512
|
|
|
|
|
|
|
MMMEd => { |
513
|
|
|
|
|
|
|
d => q{M月d日E至M月d日E}, |
514
|
|
|
|
|
|
|
}, |
515
|
|
|
|
|
|
|
Md => { |
516
|
|
|
|
|
|
|
M => q{M-d至M-d}, |
517
|
|
|
|
|
|
|
d => q{M-d至M-d}, |
518
|
|
|
|
|
|
|
}, |
519
|
|
|
|
|
|
|
fallback => '{0}至{1}', |
520
|
|
|
|
|
|
|
yM => { |
521
|
|
|
|
|
|
|
M => q{y年M月至y年M月}, |
522
|
|
|
|
|
|
|
}, |
523
|
|
|
|
|
|
|
yMEd => { |
524
|
|
|
|
|
|
|
M => q{d/M/yE至d/M/yE}, |
525
|
|
|
|
|
|
|
d => q{d/M/yE至d/M/yE}, |
526
|
|
|
|
|
|
|
y => q{d/M/yE至d/M/yE}, |
527
|
|
|
|
|
|
|
}, |
528
|
|
|
|
|
|
|
yMd => { |
529
|
|
|
|
|
|
|
M => q{d/M/y至d/M/y}, |
530
|
|
|
|
|
|
|
d => q{d/M/y至d/M/y}, |
531
|
|
|
|
|
|
|
y => q{d/M/y至d/M/y}, |
532
|
|
|
|
|
|
|
}, |
533
|
|
|
|
|
|
|
}, |
534
|
|
|
|
|
|
|
'gregorian' => { |
535
|
|
|
|
|
|
|
Hmv => { |
536
|
|
|
|
|
|
|
H => q{vHH:mm–HH:mm}, |
537
|
|
|
|
|
|
|
m => q{vHH:mm–HH:mm}, |
538
|
|
|
|
|
|
|
}, |
539
|
|
|
|
|
|
|
Hv => { |
540
|
|
|
|
|
|
|
H => q{vHH–HH}, |
541
|
|
|
|
|
|
|
}, |
542
|
|
|
|
|
|
|
MEd => { |
543
|
|
|
|
|
|
|
M => q{M-dE至M-dE}, |
544
|
|
|
|
|
|
|
d => q{M-dE至M-dE}, |
545
|
|
|
|
|
|
|
}, |
546
|
|
|
|
|
|
|
MMMEd => { |
547
|
|
|
|
|
|
|
d => q{M月d日E至M月d日E}, |
548
|
|
|
|
|
|
|
}, |
549
|
|
|
|
|
|
|
Md => { |
550
|
|
|
|
|
|
|
M => q{M-d至M-d}, |
551
|
|
|
|
|
|
|
d => q{M-d至M-d}, |
552
|
|
|
|
|
|
|
}, |
553
|
|
|
|
|
|
|
d => { |
554
|
|
|
|
|
|
|
d => q{d日至d日}, |
555
|
|
|
|
|
|
|
}, |
556
|
|
|
|
|
|
|
fallback => '{0}至{1}', |
557
|
|
|
|
|
|
|
yM => { |
558
|
|
|
|
|
|
|
M => q{y年M月至y年M月}, |
559
|
|
|
|
|
|
|
}, |
560
|
|
|
|
|
|
|
yMEd => { |
561
|
|
|
|
|
|
|
M => q{d/M/yE至d/M/yE}, |
562
|
|
|
|
|
|
|
d => q{d/M/yE至d/M/yE}, |
563
|
|
|
|
|
|
|
y => q{d/M/yE至d/M/yE}, |
564
|
|
|
|
|
|
|
}, |
565
|
|
|
|
|
|
|
yMd => { |
566
|
|
|
|
|
|
|
M => q{d/M/y至d/M/y}, |
567
|
|
|
|
|
|
|
d => q{d/M/y至d/M/y}, |
568
|
|
|
|
|
|
|
y => q{d/M/y至d/M/y}, |
569
|
|
|
|
|
|
|
}, |
570
|
|
|
|
|
|
|
}, |
571
|
|
|
|
|
|
|
} }, |
572
|
|
|
|
|
|
|
); |
573
|
|
|
|
|
|
|
|
574
|
|
|
|
|
|
|
has 'time_zone_names' => ( |
575
|
|
|
|
|
|
|
is => 'ro', |
576
|
|
|
|
|
|
|
isa => HashRef, |
577
|
|
|
|
|
|
|
init_arg => undef, |
578
|
|
|
|
|
|
|
default => sub { { |
579
|
|
|
|
|
|
|
'America/Scoresbysund' => { |
580
|
|
|
|
|
|
|
exemplarCity => q#斯考斯伯松德#, |
581
|
|
|
|
|
|
|
}, |
582
|
|
|
|
|
|
|
'Malaysia' => { |
583
|
|
|
|
|
|
|
short => { |
584
|
|
|
|
|
|
|
'standard' => q#MYT#, |
585
|
|
|
|
|
|
|
}, |
586
|
|
|
|
|
|
|
}, |
587
|
|
|
|
|
|
|
'Singapore' => { |
588
|
|
|
|
|
|
|
short => { |
589
|
|
|
|
|
|
|
'standard' => q#SGT#, |
590
|
|
|
|
|
|
|
}, |
591
|
|
|
|
|
|
|
}, |
592
|
|
|
|
|
|
|
} } |
593
|
|
|
|
|
|
|
); |
594
|
|
|
|
|
|
|
no Moo; |
595
|
1
|
|
|
1
|
|
1890
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
596
|
|
|
|
|
|
|
1; |
597
|
|
|
|
|
|
|
|
598
|
|
|
|
|
|
|
# vim: tabstop=4 |