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