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