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