line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::En::Any::Nz - Package for language English |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/en_NZ.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:27:07 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
2
|
|
|
2
|
|
9216
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
50
|
|
14
|
2
|
|
|
2
|
|
9
|
use version; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
40
|
|
15
|
2
|
|
|
2
|
|
9
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
10
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
2
|
|
|
2
|
|
182
|
use mro 'c3'; |
|
2
|
|
|
|
|
7
|
|
20
|
2
|
|
|
2
|
|
9
|
use utf8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
10
|
|
21
|
2
|
|
|
2
|
|
61
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
9
|
|
22
|
2
|
|
|
2
|
|
56
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
22
|
|
23
|
2
|
|
|
2
|
|
204
|
use Moo; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
14
|
|
24
|
2
|
|
|
2
|
|
1754
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::En::Any::001'); |
26
|
|
|
|
|
|
|
has 'display_name_language' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => CodeRef, |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => sub { |
31
|
|
|
|
|
|
|
sub { |
32
|
|
|
|
|
|
|
my %languages = ( |
33
|
|
|
|
|
|
|
'mi' => 'Māori', |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
if (@_) { |
37
|
|
|
|
|
|
|
return $languages{$_[0]}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
return \%languages; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
}, |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
has 'currencies' => ( |
45
|
|
|
|
|
|
|
is => 'ro', |
46
|
|
|
|
|
|
|
isa => HashRef, |
47
|
|
|
|
|
|
|
init_arg => undef, |
48
|
|
|
|
|
|
|
default => sub { { |
49
|
|
|
|
|
|
|
'NZD' => { |
50
|
|
|
|
|
|
|
symbol => '$', |
51
|
|
|
|
|
|
|
}, |
52
|
|
|
|
|
|
|
} }, |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
has 'day_period_data' => ( |
57
|
|
|
|
|
|
|
is => 'ro', |
58
|
|
|
|
|
|
|
isa => CodeRef, |
59
|
|
|
|
|
|
|
init_arg => undef, |
60
|
|
|
|
|
|
|
default => sub { sub { |
61
|
|
|
|
|
|
|
# Time in hhmm format |
62
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
63
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
64
|
|
|
|
|
|
|
SWITCH: |
65
|
|
|
|
|
|
|
for ($type) { |
66
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
67
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
68
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
69
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
70
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
71
|
|
|
|
|
|
|
&& $time < 1800; |
72
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
73
|
|
|
|
|
|
|
&& $time < 2100; |
74
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
75
|
|
|
|
|
|
|
&& $time < 1200; |
76
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
77
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
80
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
81
|
|
|
|
|
|
|
&& $time < 1800; |
82
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
83
|
|
|
|
|
|
|
&& $time < 2100; |
84
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
85
|
|
|
|
|
|
|
&& $time < 1200; |
86
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
87
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
88
|
|
|
|
|
|
|
} |
89
|
|
|
|
|
|
|
last SWITCH; |
90
|
|
|
|
|
|
|
} |
91
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
92
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
93
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
94
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
95
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
96
|
|
|
|
|
|
|
&& $time < 1800; |
97
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
98
|
|
|
|
|
|
|
&& $time < 2100; |
99
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
100
|
|
|
|
|
|
|
&& $time < 1200; |
101
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
102
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
105
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
106
|
|
|
|
|
|
|
&& $time < 1800; |
107
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
108
|
|
|
|
|
|
|
&& $time < 2100; |
109
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
110
|
|
|
|
|
|
|
&& $time < 1200; |
111
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
112
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
113
|
|
|
|
|
|
|
} |
114
|
|
|
|
|
|
|
last SWITCH; |
115
|
|
|
|
|
|
|
} |
116
|
|
|
|
|
|
|
} |
117
|
|
|
|
|
|
|
} }, |
118
|
|
|
|
|
|
|
); |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
around day_period_data => sub { |
121
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
122
|
|
|
|
|
|
|
return $self->$orig; |
123
|
|
|
|
|
|
|
}; |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
has 'eras' => ( |
126
|
|
|
|
|
|
|
is => 'ro', |
127
|
|
|
|
|
|
|
isa => HashRef, |
128
|
|
|
|
|
|
|
init_arg => undef, |
129
|
|
|
|
|
|
|
default => sub { { |
130
|
|
|
|
|
|
|
'generic' => { |
131
|
|
|
|
|
|
|
}, |
132
|
|
|
|
|
|
|
'gregorian' => { |
133
|
|
|
|
|
|
|
}, |
134
|
|
|
|
|
|
|
} }, |
135
|
|
|
|
|
|
|
); |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
has 'date_formats' => ( |
138
|
|
|
|
|
|
|
is => 'ro', |
139
|
|
|
|
|
|
|
isa => HashRef, |
140
|
|
|
|
|
|
|
init_arg => undef, |
141
|
|
|
|
|
|
|
default => sub { { |
142
|
|
|
|
|
|
|
'generic' => { |
143
|
|
|
|
|
|
|
'medium' => q{d/MM/y G}, |
144
|
|
|
|
|
|
|
'short' => q{d/MM/y GGGGG}, |
145
|
|
|
|
|
|
|
}, |
146
|
|
|
|
|
|
|
'gregorian' => { |
147
|
|
|
|
|
|
|
'medium' => q{d/MM/y}, |
148
|
|
|
|
|
|
|
'short' => q{d/MM/yy}, |
149
|
|
|
|
|
|
|
}, |
150
|
|
|
|
|
|
|
} }, |
151
|
|
|
|
|
|
|
); |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
has 'time_formats' => ( |
154
|
|
|
|
|
|
|
is => 'ro', |
155
|
|
|
|
|
|
|
isa => HashRef, |
156
|
|
|
|
|
|
|
init_arg => undef, |
157
|
|
|
|
|
|
|
default => sub { { |
158
|
|
|
|
|
|
|
'generic' => { |
159
|
|
|
|
|
|
|
}, |
160
|
|
|
|
|
|
|
'gregorian' => { |
161
|
|
|
|
|
|
|
}, |
162
|
|
|
|
|
|
|
} }, |
163
|
|
|
|
|
|
|
); |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
166
|
|
|
|
|
|
|
is => 'ro', |
167
|
|
|
|
|
|
|
isa => HashRef, |
168
|
|
|
|
|
|
|
init_arg => undef, |
169
|
|
|
|
|
|
|
default => sub { { |
170
|
|
|
|
|
|
|
'generic' => { |
171
|
|
|
|
|
|
|
}, |
172
|
|
|
|
|
|
|
'gregorian' => { |
173
|
|
|
|
|
|
|
}, |
174
|
|
|
|
|
|
|
} }, |
175
|
|
|
|
|
|
|
); |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
178
|
|
|
|
|
|
|
is => 'ro', |
179
|
|
|
|
|
|
|
isa => HashRef, |
180
|
|
|
|
|
|
|
init_arg => undef, |
181
|
|
|
|
|
|
|
default => sub { { |
182
|
|
|
|
|
|
|
'generic' => { |
183
|
|
|
|
|
|
|
Md => q{d/M}, |
184
|
|
|
|
|
|
|
yyyyMd => q{d/MM/y G}, |
185
|
|
|
|
|
|
|
}, |
186
|
|
|
|
|
|
|
'gregorian' => { |
187
|
|
|
|
|
|
|
Md => q{d/M}, |
188
|
|
|
|
|
|
|
yMd => q{d/MM/y}, |
189
|
|
|
|
|
|
|
yw => q{'week' w 'of' Y}, |
190
|
|
|
|
|
|
|
}, |
191
|
|
|
|
|
|
|
} }, |
192
|
|
|
|
|
|
|
); |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
195
|
|
|
|
|
|
|
is => 'ro', |
196
|
|
|
|
|
|
|
isa => HashRef, |
197
|
|
|
|
|
|
|
init_arg => undef, |
198
|
|
|
|
|
|
|
default => sub { { |
199
|
|
|
|
|
|
|
} }, |
200
|
|
|
|
|
|
|
); |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
203
|
|
|
|
|
|
|
is => 'ro', |
204
|
|
|
|
|
|
|
isa => HashRef, |
205
|
|
|
|
|
|
|
init_arg => undef, |
206
|
|
|
|
|
|
|
default => sub { { |
207
|
|
|
|
|
|
|
'generic' => { |
208
|
|
|
|
|
|
|
MEd => { |
209
|
|
|
|
|
|
|
M => q{E, d/MM – E, d/MM}, |
210
|
|
|
|
|
|
|
d => q{E, d/MM – E, d/MM}, |
211
|
|
|
|
|
|
|
}, |
212
|
|
|
|
|
|
|
MMMEd => { |
213
|
|
|
|
|
|
|
M => q{E, d MMM – E, d MMM}, |
214
|
|
|
|
|
|
|
d => q{E, d – E, d MMM}, |
215
|
|
|
|
|
|
|
}, |
216
|
|
|
|
|
|
|
Md => { |
217
|
|
|
|
|
|
|
M => q{d/MM – d/MM}, |
218
|
|
|
|
|
|
|
d => q{d/MM – d/MM}, |
219
|
|
|
|
|
|
|
}, |
220
|
|
|
|
|
|
|
yM => { |
221
|
|
|
|
|
|
|
M => q{MM/y – MM/y G}, |
222
|
|
|
|
|
|
|
y => q{MM/y – MM/y G}, |
223
|
|
|
|
|
|
|
}, |
224
|
|
|
|
|
|
|
yMEd => { |
225
|
|
|
|
|
|
|
M => q{E, d/MM/y – E, d/MM/y G}, |
226
|
|
|
|
|
|
|
d => q{E, d/MM/y – E, d/MM/y G}, |
227
|
|
|
|
|
|
|
y => q{E, d/MM/y – E, d/MM/y G}, |
228
|
|
|
|
|
|
|
}, |
229
|
|
|
|
|
|
|
yMd => { |
230
|
|
|
|
|
|
|
M => q{d/MM/y – d/MM/y G}, |
231
|
|
|
|
|
|
|
d => q{d/MM/y – d/MM/y G}, |
232
|
|
|
|
|
|
|
y => q{d/MM/y – d/MM/y G}, |
233
|
|
|
|
|
|
|
}, |
234
|
|
|
|
|
|
|
}, |
235
|
|
|
|
|
|
|
'gregorian' => { |
236
|
|
|
|
|
|
|
MEd => { |
237
|
|
|
|
|
|
|
M => q{E, d/MM – E, d/MM}, |
238
|
|
|
|
|
|
|
d => q{E, d/MM – E, d/MM}, |
239
|
|
|
|
|
|
|
}, |
240
|
|
|
|
|
|
|
MMMEd => { |
241
|
|
|
|
|
|
|
M => q{E, d MMM – E, d MMM}, |
242
|
|
|
|
|
|
|
d => q{E, d – E, d MMM}, |
243
|
|
|
|
|
|
|
}, |
244
|
|
|
|
|
|
|
Md => { |
245
|
|
|
|
|
|
|
M => q{d/MM – d/MM}, |
246
|
|
|
|
|
|
|
d => q{d/MM – d/MM}, |
247
|
|
|
|
|
|
|
}, |
248
|
|
|
|
|
|
|
yMEd => { |
249
|
|
|
|
|
|
|
M => q{E, d/MM/y – E, d/MM/y}, |
250
|
|
|
|
|
|
|
d => q{E, d/MM/y – E, d/MM/y}, |
251
|
|
|
|
|
|
|
y => q{E, d/MM/y – E, d/MM/y}, |
252
|
|
|
|
|
|
|
}, |
253
|
|
|
|
|
|
|
yMd => { |
254
|
|
|
|
|
|
|
M => q{d/MM/y – d/MM/y}, |
255
|
|
|
|
|
|
|
d => q{d/MM/y – d/MM/y}, |
256
|
|
|
|
|
|
|
y => q{d/MM/y – d/MM/y}, |
257
|
|
|
|
|
|
|
}, |
258
|
|
|
|
|
|
|
}, |
259
|
|
|
|
|
|
|
} }, |
260
|
|
|
|
|
|
|
); |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
has 'time_zone_names' => ( |
263
|
|
|
|
|
|
|
is => 'ro', |
264
|
|
|
|
|
|
|
isa => HashRef, |
265
|
|
|
|
|
|
|
init_arg => undef, |
266
|
|
|
|
|
|
|
default => sub { { |
267
|
|
|
|
|
|
|
'Australia_Central' => { |
268
|
|
|
|
|
|
|
short => { |
269
|
|
|
|
|
|
|
'daylight' => q#ACDT#, |
270
|
|
|
|
|
|
|
'generic' => q#ACT#, |
271
|
|
|
|
|
|
|
'standard' => q#ACST#, |
272
|
|
|
|
|
|
|
}, |
273
|
|
|
|
|
|
|
}, |
274
|
|
|
|
|
|
|
'Australia_CentralWestern' => { |
275
|
|
|
|
|
|
|
short => { |
276
|
|
|
|
|
|
|
'daylight' => q#ACWDT#, |
277
|
|
|
|
|
|
|
'generic' => q#ACWT#, |
278
|
|
|
|
|
|
|
'standard' => q#ACWST#, |
279
|
|
|
|
|
|
|
}, |
280
|
|
|
|
|
|
|
}, |
281
|
|
|
|
|
|
|
'Australia_Eastern' => { |
282
|
|
|
|
|
|
|
short => { |
283
|
|
|
|
|
|
|
'daylight' => q#AEDT#, |
284
|
|
|
|
|
|
|
'generic' => q#AET#, |
285
|
|
|
|
|
|
|
'standard' => q#AEST#, |
286
|
|
|
|
|
|
|
}, |
287
|
|
|
|
|
|
|
}, |
288
|
|
|
|
|
|
|
'Australia_Western' => { |
289
|
|
|
|
|
|
|
short => { |
290
|
|
|
|
|
|
|
'daylight' => q#AWDT#, |
291
|
|
|
|
|
|
|
'generic' => q#AWT#, |
292
|
|
|
|
|
|
|
'standard' => q#AWST#, |
293
|
|
|
|
|
|
|
}, |
294
|
|
|
|
|
|
|
}, |
295
|
|
|
|
|
|
|
'Chatham' => { |
296
|
|
|
|
|
|
|
short => { |
297
|
|
|
|
|
|
|
'daylight' => q#CHADT#, |
298
|
|
|
|
|
|
|
'generic' => q#CHAT#, |
299
|
|
|
|
|
|
|
'standard' => q#CHAST#, |
300
|
|
|
|
|
|
|
}, |
301
|
|
|
|
|
|
|
}, |
302
|
|
|
|
|
|
|
'Lord_Howe' => { |
303
|
|
|
|
|
|
|
short => { |
304
|
|
|
|
|
|
|
'daylight' => q#LHDT#, |
305
|
|
|
|
|
|
|
'generic' => q#LHT#, |
306
|
|
|
|
|
|
|
'standard' => q#LHST#, |
307
|
|
|
|
|
|
|
}, |
308
|
|
|
|
|
|
|
}, |
309
|
|
|
|
|
|
|
'New_Zealand' => { |
310
|
|
|
|
|
|
|
short => { |
311
|
|
|
|
|
|
|
'daylight' => q#NZDT#, |
312
|
|
|
|
|
|
|
'generic' => q#NZT#, |
313
|
|
|
|
|
|
|
'standard' => q#NZST#, |
314
|
|
|
|
|
|
|
}, |
315
|
|
|
|
|
|
|
}, |
316
|
|
|
|
|
|
|
} } |
317
|
|
|
|
|
|
|
); |
318
|
|
|
|
|
|
|
no Moo; |
319
|
2
|
|
|
2
|
|
2319
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
8
|
|
320
|
|
|
|
|
|
|
1; |
321
|
|
|
|
|
|
|
|
322
|
|
|
|
|
|
|
# vim: tabstop=4 |