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