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