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