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