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