line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Pt::Any::Mo - Package for language Portuguese |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Locale::CLDR::Locales::Pt::Any::Mo; |
10
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\pt_MO.xml |
11
|
|
|
|
|
|
|
# on Fri 13 Oct 9:34:21 am GMT |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
938
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
14
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
15
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.2'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
96
|
use v5.10.1; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
6
|
use mro 'c3'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
21
|
1
|
|
|
1
|
|
22
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
22
|
1
|
|
|
1
|
|
38
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
23
|
1
|
|
|
1
|
|
127
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
12
|
|
24
|
1
|
|
|
1
|
|
912
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Pt::Any::Pt'); |
27
|
|
|
|
|
|
|
has 'currencies' => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => HashRef, |
30
|
|
|
|
|
|
|
init_arg => undef, |
31
|
|
|
|
|
|
|
default => sub { { |
32
|
|
|
|
|
|
|
'MOP' => { |
33
|
|
|
|
|
|
|
symbol => 'MOP$', |
34
|
|
|
|
|
|
|
}, |
35
|
|
|
|
|
|
|
} }, |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has 'day_period_data' => ( |
40
|
|
|
|
|
|
|
is => 'ro', |
41
|
|
|
|
|
|
|
isa => CodeRef, |
42
|
|
|
|
|
|
|
init_arg => undef, |
43
|
|
|
|
|
|
|
default => sub { sub { |
44
|
|
|
|
|
|
|
# Time in hhmm format |
45
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
46
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
47
|
|
|
|
|
|
|
SWITCH: |
48
|
|
|
|
|
|
|
for ($type) { |
49
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
50
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
51
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
52
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
53
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
54
|
|
|
|
|
|
|
&& $time < 1900; |
55
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
56
|
|
|
|
|
|
|
&& $time < 2400; |
57
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
58
|
|
|
|
|
|
|
&& $time < 1200; |
59
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
60
|
|
|
|
|
|
|
&& $time < 600; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
63
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
64
|
|
|
|
|
|
|
&& $time < 1900; |
65
|
|
|
|
|
|
|
return 'evening1' if $time >= 1900 |
66
|
|
|
|
|
|
|
&& $time < 2400; |
67
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
68
|
|
|
|
|
|
|
&& $time < 1200; |
69
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
70
|
|
|
|
|
|
|
&& $time < 600; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
last SWITCH; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
} }, |
76
|
|
|
|
|
|
|
); |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
around day_period_data => sub { |
79
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
80
|
|
|
|
|
|
|
return $self->$orig; |
81
|
|
|
|
|
|
|
}; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
has 'eras' => ( |
84
|
|
|
|
|
|
|
is => 'ro', |
85
|
|
|
|
|
|
|
isa => HashRef, |
86
|
|
|
|
|
|
|
init_arg => undef, |
87
|
|
|
|
|
|
|
default => sub { { |
88
|
|
|
|
|
|
|
'gregorian' => { |
89
|
|
|
|
|
|
|
}, |
90
|
|
|
|
|
|
|
} }, |
91
|
|
|
|
|
|
|
); |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
has 'date_formats' => ( |
94
|
|
|
|
|
|
|
is => 'ro', |
95
|
|
|
|
|
|
|
isa => HashRef, |
96
|
|
|
|
|
|
|
init_arg => undef, |
97
|
|
|
|
|
|
|
default => sub { { |
98
|
|
|
|
|
|
|
'gregorian' => { |
99
|
|
|
|
|
|
|
}, |
100
|
|
|
|
|
|
|
} }, |
101
|
|
|
|
|
|
|
); |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
has 'time_formats' => ( |
104
|
|
|
|
|
|
|
is => 'ro', |
105
|
|
|
|
|
|
|
isa => HashRef, |
106
|
|
|
|
|
|
|
init_arg => undef, |
107
|
|
|
|
|
|
|
default => sub { { |
108
|
|
|
|
|
|
|
'gregorian' => { |
109
|
|
|
|
|
|
|
'full' => q{h:mm:ss a zzzz}, |
110
|
|
|
|
|
|
|
'long' => q{h:mm:ss a z}, |
111
|
|
|
|
|
|
|
'medium' => q{h:mm:ss a}, |
112
|
|
|
|
|
|
|
'short' => q{h:mm a}, |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
} }, |
115
|
|
|
|
|
|
|
); |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
118
|
|
|
|
|
|
|
is => 'ro', |
119
|
|
|
|
|
|
|
isa => HashRef, |
120
|
|
|
|
|
|
|
init_arg => undef, |
121
|
|
|
|
|
|
|
default => sub { { |
122
|
|
|
|
|
|
|
'gregorian' => { |
123
|
|
|
|
|
|
|
}, |
124
|
|
|
|
|
|
|
} }, |
125
|
|
|
|
|
|
|
); |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
128
|
|
|
|
|
|
|
is => 'ro', |
129
|
|
|
|
|
|
|
isa => HashRef, |
130
|
|
|
|
|
|
|
init_arg => undef, |
131
|
|
|
|
|
|
|
default => sub { { |
132
|
|
|
|
|
|
|
} }, |
133
|
|
|
|
|
|
|
); |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
136
|
|
|
|
|
|
|
is => 'ro', |
137
|
|
|
|
|
|
|
isa => HashRef, |
138
|
|
|
|
|
|
|
init_arg => undef, |
139
|
|
|
|
|
|
|
default => sub { { |
140
|
|
|
|
|
|
|
} }, |
141
|
|
|
|
|
|
|
); |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
144
|
|
|
|
|
|
|
is => 'ro', |
145
|
|
|
|
|
|
|
isa => HashRef, |
146
|
|
|
|
|
|
|
init_arg => undef, |
147
|
|
|
|
|
|
|
default => sub { { |
148
|
|
|
|
|
|
|
} }, |
149
|
|
|
|
|
|
|
); |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
has 'time_zone_names' => ( |
152
|
|
|
|
|
|
|
is => 'ro', |
153
|
|
|
|
|
|
|
isa => HashRef, |
154
|
|
|
|
|
|
|
init_arg => undef, |
155
|
|
|
|
|
|
|
default => sub { { |
156
|
|
|
|
|
|
|
'Azores' => { |
157
|
|
|
|
|
|
|
short => { |
158
|
|
|
|
|
|
|
'daylight' => q#∅∅∅#, |
159
|
|
|
|
|
|
|
'generic' => q#∅∅∅#, |
160
|
|
|
|
|
|
|
'standard' => q#∅∅∅#, |
161
|
|
|
|
|
|
|
}, |
162
|
|
|
|
|
|
|
}, |
163
|
|
|
|
|
|
|
'Europe_Central' => { |
164
|
|
|
|
|
|
|
short => { |
165
|
|
|
|
|
|
|
'daylight' => q#∅∅∅#, |
166
|
|
|
|
|
|
|
'generic' => q#∅∅∅#, |
167
|
|
|
|
|
|
|
'standard' => q#∅∅∅#, |
168
|
|
|
|
|
|
|
}, |
169
|
|
|
|
|
|
|
}, |
170
|
|
|
|
|
|
|
'Europe_Eastern' => { |
171
|
|
|
|
|
|
|
short => { |
172
|
|
|
|
|
|
|
'daylight' => q#∅∅∅#, |
173
|
|
|
|
|
|
|
'generic' => q#∅∅∅#, |
174
|
|
|
|
|
|
|
'standard' => q#∅∅∅#, |
175
|
|
|
|
|
|
|
}, |
176
|
|
|
|
|
|
|
}, |
177
|
|
|
|
|
|
|
'Europe_Western' => { |
178
|
|
|
|
|
|
|
short => { |
179
|
|
|
|
|
|
|
'daylight' => q#∅∅∅#, |
180
|
|
|
|
|
|
|
'generic' => q#∅∅∅#, |
181
|
|
|
|
|
|
|
'standard' => q#∅∅∅#, |
182
|
|
|
|
|
|
|
}, |
183
|
|
|
|
|
|
|
}, |
184
|
|
|
|
|
|
|
} } |
185
|
|
|
|
|
|
|
); |
186
|
1
|
|
|
1
|
|
900
|
no Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3
|
|
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
1; |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
# vim: tabstop=4 |