line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
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 Fri 13 Oct 9:12:30 am GMT |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
818
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
14
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
19
|
|
15
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.2'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
82
|
use v5.10.1; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
6
|
use mro 'c3'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
21
|
1
|
|
|
1
|
|
21
|
use utf8; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
5
|
|
22
|
1
|
|
|
1
|
|
30
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
90
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
24
|
1
|
|
|
1
|
|
872
|
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 'default') { |
39
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
40
|
|
|
|
|
|
|
&& $time < 1400; |
41
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1400 |
42
|
|
|
|
|
|
|
&& $time < 1800; |
43
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
44
|
|
|
|
|
|
|
&& $time < 2100; |
45
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
46
|
|
|
|
|
|
|
&& $time < 500; |
47
|
|
|
|
|
|
|
return 'morning2' if $time >= 500 |
48
|
|
|
|
|
|
|
&& $time < 1200; |
49
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
50
|
|
|
|
|
|
|
return 'night1' if $time < 400; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
53
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
54
|
|
|
|
|
|
|
&& $time < 1400; |
55
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1400 |
56
|
|
|
|
|
|
|
&& $time < 1800; |
57
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
58
|
|
|
|
|
|
|
&& $time < 2100; |
59
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
60
|
|
|
|
|
|
|
&& $time < 500; |
61
|
|
|
|
|
|
|
return 'morning2' if $time >= 500 |
62
|
|
|
|
|
|
|
&& $time < 1200; |
63
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
64
|
|
|
|
|
|
|
return 'night1' if $time < 400; |
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
|
|
811
|
no Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3
|
|
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
1; |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
# vim: tabstop=4 |