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