line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::En::Any::Sg - Package for language English |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/en_SG.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:27:08 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
829
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
14
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
15
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
1
|
|
|
1
|
|
88
|
use mro 'c3'; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
4
|
use utf8; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
5
|
|
21
|
1
|
|
|
1
|
|
32
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
22
|
1
|
|
|
1
|
|
26
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
120
|
|
23
|
1
|
|
|
1
|
|
83
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
24
|
1
|
|
|
1
|
|
860
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::En::Any::001'); |
26
|
|
|
|
|
|
|
has 'currencies' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => HashRef, |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => sub { { |
31
|
|
|
|
|
|
|
'SGD' => { |
32
|
|
|
|
|
|
|
symbol => '$', |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
} }, |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
has 'day_period_data' => ( |
39
|
|
|
|
|
|
|
is => 'ro', |
40
|
|
|
|
|
|
|
isa => CodeRef, |
41
|
|
|
|
|
|
|
init_arg => undef, |
42
|
|
|
|
|
|
|
default => sub { sub { |
43
|
|
|
|
|
|
|
# Time in hhmm format |
44
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
45
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
46
|
|
|
|
|
|
|
SWITCH: |
47
|
|
|
|
|
|
|
for ($type) { |
48
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
49
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
50
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
51
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
52
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
53
|
|
|
|
|
|
|
&& $time < 1800; |
54
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
55
|
|
|
|
|
|
|
&& $time < 2100; |
56
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
57
|
|
|
|
|
|
|
&& $time < 1200; |
58
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
59
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
62
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
63
|
|
|
|
|
|
|
&& $time < 1800; |
64
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
65
|
|
|
|
|
|
|
&& $time < 2100; |
66
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
67
|
|
|
|
|
|
|
&& $time < 1200; |
68
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
69
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
last SWITCH; |
72
|
|
|
|
|
|
|
} |
73
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
74
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
75
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
76
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
77
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
78
|
|
|
|
|
|
|
&& $time < 1800; |
79
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
80
|
|
|
|
|
|
|
&& $time < 2100; |
81
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
82
|
|
|
|
|
|
|
&& $time < 1200; |
83
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
84
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
87
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
88
|
|
|
|
|
|
|
&& $time < 1800; |
89
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
90
|
|
|
|
|
|
|
&& $time < 2100; |
91
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
92
|
|
|
|
|
|
|
&& $time < 1200; |
93
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
94
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
last SWITCH; |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
} |
99
|
|
|
|
|
|
|
} }, |
100
|
|
|
|
|
|
|
); |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
around day_period_data => sub { |
103
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
104
|
|
|
|
|
|
|
return $self->$orig; |
105
|
|
|
|
|
|
|
}; |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
has 'eras' => ( |
108
|
|
|
|
|
|
|
is => 'ro', |
109
|
|
|
|
|
|
|
isa => HashRef, |
110
|
|
|
|
|
|
|
init_arg => undef, |
111
|
|
|
|
|
|
|
default => sub { { |
112
|
|
|
|
|
|
|
'generic' => { |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
'gregorian' => { |
115
|
|
|
|
|
|
|
}, |
116
|
|
|
|
|
|
|
} }, |
117
|
|
|
|
|
|
|
); |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
has 'date_formats' => ( |
120
|
|
|
|
|
|
|
is => 'ro', |
121
|
|
|
|
|
|
|
isa => HashRef, |
122
|
|
|
|
|
|
|
init_arg => undef, |
123
|
|
|
|
|
|
|
default => sub { { |
124
|
|
|
|
|
|
|
'generic' => { |
125
|
|
|
|
|
|
|
'short' => q{d/M/yy GGGGG}, |
126
|
|
|
|
|
|
|
}, |
127
|
|
|
|
|
|
|
'gregorian' => { |
128
|
|
|
|
|
|
|
'short' => q{d/M/yy}, |
129
|
|
|
|
|
|
|
}, |
130
|
|
|
|
|
|
|
} }, |
131
|
|
|
|
|
|
|
); |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
has 'time_formats' => ( |
134
|
|
|
|
|
|
|
is => 'ro', |
135
|
|
|
|
|
|
|
isa => HashRef, |
136
|
|
|
|
|
|
|
init_arg => undef, |
137
|
|
|
|
|
|
|
default => sub { { |
138
|
|
|
|
|
|
|
'generic' => { |
139
|
|
|
|
|
|
|
}, |
140
|
|
|
|
|
|
|
'gregorian' => { |
141
|
|
|
|
|
|
|
}, |
142
|
|
|
|
|
|
|
} }, |
143
|
|
|
|
|
|
|
); |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
146
|
|
|
|
|
|
|
is => 'ro', |
147
|
|
|
|
|
|
|
isa => HashRef, |
148
|
|
|
|
|
|
|
init_arg => undef, |
149
|
|
|
|
|
|
|
default => sub { { |
150
|
|
|
|
|
|
|
'generic' => { |
151
|
|
|
|
|
|
|
}, |
152
|
|
|
|
|
|
|
'gregorian' => { |
153
|
|
|
|
|
|
|
}, |
154
|
|
|
|
|
|
|
} }, |
155
|
|
|
|
|
|
|
); |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
158
|
|
|
|
|
|
|
is => 'ro', |
159
|
|
|
|
|
|
|
isa => HashRef, |
160
|
|
|
|
|
|
|
init_arg => undef, |
161
|
|
|
|
|
|
|
default => sub { { |
162
|
|
|
|
|
|
|
'generic' => { |
163
|
|
|
|
|
|
|
yyyyMEd => q{E, d/M/y GGGGG}, |
164
|
|
|
|
|
|
|
}, |
165
|
|
|
|
|
|
|
} }, |
166
|
|
|
|
|
|
|
); |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
169
|
|
|
|
|
|
|
is => 'ro', |
170
|
|
|
|
|
|
|
isa => HashRef, |
171
|
|
|
|
|
|
|
init_arg => undef, |
172
|
|
|
|
|
|
|
default => sub { { |
173
|
|
|
|
|
|
|
} }, |
174
|
|
|
|
|
|
|
); |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
177
|
|
|
|
|
|
|
is => 'ro', |
178
|
|
|
|
|
|
|
isa => HashRef, |
179
|
|
|
|
|
|
|
init_arg => undef, |
180
|
|
|
|
|
|
|
default => sub { { |
181
|
|
|
|
|
|
|
'generic' => { |
182
|
|
|
|
|
|
|
MEd => { |
183
|
|
|
|
|
|
|
M => q{E, d/M – E, d/M}, |
184
|
|
|
|
|
|
|
d => q{E, d/M – E, d/M}, |
185
|
|
|
|
|
|
|
}, |
186
|
|
|
|
|
|
|
MMMEd => { |
187
|
|
|
|
|
|
|
M => q{E, d MMM – E, d MMM}, |
188
|
|
|
|
|
|
|
d => q{E, d MMM – E, d MMM}, |
189
|
|
|
|
|
|
|
}, |
190
|
|
|
|
|
|
|
Md => { |
191
|
|
|
|
|
|
|
M => q{d/M – d/M}, |
192
|
|
|
|
|
|
|
d => q{d/M – d/M}, |
193
|
|
|
|
|
|
|
}, |
194
|
|
|
|
|
|
|
yMEd => { |
195
|
|
|
|
|
|
|
M => q{E, d/M/y – E, d/M/y G}, |
196
|
|
|
|
|
|
|
d => q{E, d/M/y – E, d/M/y G}, |
197
|
|
|
|
|
|
|
y => q{E, d/M/y – E, d/M/y G}, |
198
|
|
|
|
|
|
|
}, |
199
|
|
|
|
|
|
|
yMMMEd => { |
200
|
|
|
|
|
|
|
d => q{E, d MMM – E, d MMM y G}, |
201
|
|
|
|
|
|
|
}, |
202
|
|
|
|
|
|
|
yMd => { |
203
|
|
|
|
|
|
|
M => q{d/M/y – d/M/y G}, |
204
|
|
|
|
|
|
|
d => q{d/M/y – d/M/y G}, |
205
|
|
|
|
|
|
|
y => q{d/M/y – d/M/y G}, |
206
|
|
|
|
|
|
|
}, |
207
|
|
|
|
|
|
|
}, |
208
|
|
|
|
|
|
|
'gregorian' => { |
209
|
|
|
|
|
|
|
MEd => { |
210
|
|
|
|
|
|
|
M => q{E, d/M – E, d/M}, |
211
|
|
|
|
|
|
|
d => q{E, d/M – E, d/M}, |
212
|
|
|
|
|
|
|
}, |
213
|
|
|
|
|
|
|
MMMEd => { |
214
|
|
|
|
|
|
|
M => q{E, d MMM – E, d MMM}, |
215
|
|
|
|
|
|
|
d => q{E, d MMM – E, d MMM}, |
216
|
|
|
|
|
|
|
}, |
217
|
|
|
|
|
|
|
Md => { |
218
|
|
|
|
|
|
|
M => q{d/M – d/M}, |
219
|
|
|
|
|
|
|
d => q{d/M – d/M}, |
220
|
|
|
|
|
|
|
}, |
221
|
|
|
|
|
|
|
yMEd => { |
222
|
|
|
|
|
|
|
M => q{E, d/M/y – E, d/M/y}, |
223
|
|
|
|
|
|
|
d => q{E, d/M/y – E, d/M/y}, |
224
|
|
|
|
|
|
|
y => q{E, d/M/y – E, d/M/y}, |
225
|
|
|
|
|
|
|
}, |
226
|
|
|
|
|
|
|
yMMMEd => { |
227
|
|
|
|
|
|
|
d => q{E, d MMM – E, d MMM y}, |
228
|
|
|
|
|
|
|
}, |
229
|
|
|
|
|
|
|
yMd => { |
230
|
|
|
|
|
|
|
M => q{d/M/y – d/M/y}, |
231
|
|
|
|
|
|
|
d => q{d/M/y – d/M/y}, |
232
|
|
|
|
|
|
|
y => q{d/M/y – d/M/y}, |
233
|
|
|
|
|
|
|
}, |
234
|
|
|
|
|
|
|
}, |
235
|
|
|
|
|
|
|
} }, |
236
|
|
|
|
|
|
|
); |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
has 'time_zone_names' => ( |
239
|
|
|
|
|
|
|
is => 'ro', |
240
|
|
|
|
|
|
|
isa => HashRef, |
241
|
|
|
|
|
|
|
init_arg => undef, |
242
|
|
|
|
|
|
|
default => sub { { |
243
|
|
|
|
|
|
|
'Malaysia' => { |
244
|
|
|
|
|
|
|
short => { |
245
|
|
|
|
|
|
|
'standard' => q#MYT#, |
246
|
|
|
|
|
|
|
}, |
247
|
|
|
|
|
|
|
}, |
248
|
|
|
|
|
|
|
'Singapore' => { |
249
|
|
|
|
|
|
|
short => { |
250
|
|
|
|
|
|
|
'standard' => q#SGT#, |
251
|
|
|
|
|
|
|
}, |
252
|
|
|
|
|
|
|
}, |
253
|
|
|
|
|
|
|
} } |
254
|
|
|
|
|
|
|
); |
255
|
|
|
|
|
|
|
no Moo; |
256
|
1
|
|
|
1
|
|
1090
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
257
|
|
|
|
|
|
|
1; |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
# vim: tabstop=4 |