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