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