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