line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::En::Any::Nu - Package for language English |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Locale::CLDR::Locales::En::Any::Nu; |
10
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\en_NU.xml |
11
|
|
|
|
|
|
|
# on Sun 16 Dec 4:13:19 pm GMT |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
1080
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
14
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
15
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.0'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
99
|
use v5.10.1; |
|
1
|
|
|
|
|
4
|
|
20
|
1
|
|
|
1
|
|
4
|
use mro 'c3'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
21
|
1
|
|
|
1
|
|
32
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
22
|
1
|
|
|
1
|
|
27
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
12
|
|
23
|
1
|
|
|
1
|
|
107
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
24
|
1
|
|
|
1
|
|
881
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::En::Any::001'); |
27
|
|
|
|
|
|
|
has 'currencies' => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => HashRef, |
30
|
|
|
|
|
|
|
init_arg => undef, |
31
|
|
|
|
|
|
|
default => sub { { |
32
|
|
|
|
|
|
|
'NZD' => { |
33
|
|
|
|
|
|
|
symbol => '$', |
34
|
|
|
|
|
|
|
}, |
35
|
|
|
|
|
|
|
} }, |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has 'day_period_data' => ( |
40
|
|
|
|
|
|
|
is => 'ro', |
41
|
|
|
|
|
|
|
isa => CodeRef, |
42
|
|
|
|
|
|
|
init_arg => undef, |
43
|
|
|
|
|
|
|
default => sub { sub { |
44
|
|
|
|
|
|
|
# Time in hhmm format |
45
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
46
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
47
|
|
|
|
|
|
|
SWITCH: |
48
|
|
|
|
|
|
|
for ($type) { |
49
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
50
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
51
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
52
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
53
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
54
|
|
|
|
|
|
|
&& $time < 1800; |
55
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
56
|
|
|
|
|
|
|
&& $time < 1200; |
57
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
58
|
|
|
|
|
|
|
&& $time < 2100; |
59
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
60
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
63
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
64
|
|
|
|
|
|
|
&& $time < 1800; |
65
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
66
|
|
|
|
|
|
|
&& $time < 1200; |
67
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
68
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
69
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
70
|
|
|
|
|
|
|
&& $time < 2100; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
last SWITCH; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
} }, |
76
|
|
|
|
|
|
|
); |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
around day_period_data => sub { |
79
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
80
|
|
|
|
|
|
|
return $self->$orig; |
81
|
|
|
|
|
|
|
}; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
has 'eras' => ( |
84
|
|
|
|
|
|
|
is => 'ro', |
85
|
|
|
|
|
|
|
isa => HashRef, |
86
|
|
|
|
|
|
|
init_arg => undef, |
87
|
|
|
|
|
|
|
default => sub { { |
88
|
|
|
|
|
|
|
'gregorian' => { |
89
|
|
|
|
|
|
|
}, |
90
|
|
|
|
|
|
|
} }, |
91
|
|
|
|
|
|
|
); |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
has 'date_formats' => ( |
94
|
|
|
|
|
|
|
is => 'ro', |
95
|
|
|
|
|
|
|
isa => HashRef, |
96
|
|
|
|
|
|
|
init_arg => undef, |
97
|
|
|
|
|
|
|
default => sub { { |
98
|
|
|
|
|
|
|
'gregorian' => { |
99
|
|
|
|
|
|
|
}, |
100
|
|
|
|
|
|
|
} }, |
101
|
|
|
|
|
|
|
); |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
has 'time_formats' => ( |
104
|
|
|
|
|
|
|
is => 'ro', |
105
|
|
|
|
|
|
|
isa => HashRef, |
106
|
|
|
|
|
|
|
init_arg => undef, |
107
|
|
|
|
|
|
|
default => sub { { |
108
|
|
|
|
|
|
|
'gregorian' => { |
109
|
|
|
|
|
|
|
'full' => q{HH:mm:ss zzzz}, |
110
|
|
|
|
|
|
|
'long' => q{HH:mm:ss z}, |
111
|
|
|
|
|
|
|
'medium' => q{HH:mm:ss}, |
112
|
|
|
|
|
|
|
'short' => q{HH:mm}, |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
} }, |
115
|
|
|
|
|
|
|
); |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
118
|
|
|
|
|
|
|
is => 'ro', |
119
|
|
|
|
|
|
|
isa => HashRef, |
120
|
|
|
|
|
|
|
init_arg => undef, |
121
|
|
|
|
|
|
|
default => sub { { |
122
|
|
|
|
|
|
|
'gregorian' => { |
123
|
|
|
|
|
|
|
}, |
124
|
|
|
|
|
|
|
} }, |
125
|
|
|
|
|
|
|
); |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
128
|
|
|
|
|
|
|
is => 'ro', |
129
|
|
|
|
|
|
|
isa => HashRef, |
130
|
|
|
|
|
|
|
init_arg => undef, |
131
|
|
|
|
|
|
|
default => sub { { |
132
|
|
|
|
|
|
|
} }, |
133
|
|
|
|
|
|
|
); |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
136
|
|
|
|
|
|
|
is => 'ro', |
137
|
|
|
|
|
|
|
isa => HashRef, |
138
|
|
|
|
|
|
|
init_arg => undef, |
139
|
|
|
|
|
|
|
default => sub { { |
140
|
|
|
|
|
|
|
} }, |
141
|
|
|
|
|
|
|
); |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
144
|
|
|
|
|
|
|
is => 'ro', |
145
|
|
|
|
|
|
|
isa => HashRef, |
146
|
|
|
|
|
|
|
init_arg => undef, |
147
|
|
|
|
|
|
|
default => sub { { |
148
|
|
|
|
|
|
|
} }, |
149
|
|
|
|
|
|
|
); |
150
|
|
|
|
|
|
|
|
151
|
1
|
|
|
1
|
|
833
|
no Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
1; |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
# vim: tabstop=4 |