line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Fr::Any::Sn - Package for language French |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Locale::CLDR::Locales::Fr::Any::Sn; |
10
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\fr_SN.xml |
11
|
|
|
|
|
|
|
# on Fri 13 Oct 9:17:03 am GMT |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
845
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
14
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
15
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.2'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
84
|
use v5.10.1; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
5
|
use mro 'c3'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
21
|
1
|
|
|
1
|
|
32
|
use utf8; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
4
|
|
22
|
1
|
|
|
1
|
|
41
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
23
|
1
|
|
|
1
|
|
95
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
24
|
1
|
|
|
1
|
|
911
|
use Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Fr::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 'midnight' if $time == 0; |
40
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
41
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
42
|
|
|
|
|
|
|
&& $time < 1800; |
43
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
44
|
|
|
|
|
|
|
&& $time < 2400; |
45
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
46
|
|
|
|
|
|
|
&& $time < 1200; |
47
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
48
|
|
|
|
|
|
|
&& $time < 400; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
51
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
52
|
|
|
|
|
|
|
&& $time < 1800; |
53
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
54
|
|
|
|
|
|
|
&& $time < 2400; |
55
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
56
|
|
|
|
|
|
|
&& $time < 1200; |
57
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
58
|
|
|
|
|
|
|
&& $time < 400; |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
last SWITCH; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
} }, |
64
|
|
|
|
|
|
|
); |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
around day_period_data => sub { |
67
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
68
|
|
|
|
|
|
|
return $self->$orig; |
69
|
|
|
|
|
|
|
}; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
has 'day_periods' => ( |
72
|
|
|
|
|
|
|
is => 'ro', |
73
|
|
|
|
|
|
|
isa => HashRef, |
74
|
|
|
|
|
|
|
init_arg => undef, |
75
|
|
|
|
|
|
|
default => sub { { |
76
|
|
|
|
|
|
|
'gregorian' => { |
77
|
|
|
|
|
|
|
'format' => { |
78
|
|
|
|
|
|
|
'abbreviated' => { |
79
|
|
|
|
|
|
|
'afternoon1' => q{ap.m.}, |
80
|
|
|
|
|
|
|
'evening1' => q{soir}, |
81
|
|
|
|
|
|
|
'midnight' => q{min.}, |
82
|
|
|
|
|
|
|
'morning1' => q{mat.}, |
83
|
|
|
|
|
|
|
'night1' => q{nuit}, |
84
|
|
|
|
|
|
|
'noon' => q{midi}, |
85
|
|
|
|
|
|
|
}, |
86
|
|
|
|
|
|
|
'narrow' => { |
87
|
|
|
|
|
|
|
'afternoon1' => q{ap.m.}, |
88
|
|
|
|
|
|
|
'evening1' => q{soir}, |
89
|
|
|
|
|
|
|
'midnight' => q{min.}, |
90
|
|
|
|
|
|
|
'morning1' => q{mat.}, |
91
|
|
|
|
|
|
|
'night1' => q{nuit}, |
92
|
|
|
|
|
|
|
'noon' => q{midi}, |
93
|
|
|
|
|
|
|
}, |
94
|
|
|
|
|
|
|
}, |
95
|
|
|
|
|
|
|
'stand-alone' => { |
96
|
|
|
|
|
|
|
'abbreviated' => { |
97
|
|
|
|
|
|
|
'midnight' => q{min.}, |
98
|
|
|
|
|
|
|
}, |
99
|
|
|
|
|
|
|
'narrow' => { |
100
|
|
|
|
|
|
|
'midnight' => q{min.}, |
101
|
|
|
|
|
|
|
}, |
102
|
|
|
|
|
|
|
}, |
103
|
|
|
|
|
|
|
}, |
104
|
|
|
|
|
|
|
} }, |
105
|
|
|
|
|
|
|
); |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
has 'eras' => ( |
108
|
|
|
|
|
|
|
is => 'ro', |
109
|
|
|
|
|
|
|
isa => HashRef, |
110
|
|
|
|
|
|
|
init_arg => undef, |
111
|
|
|
|
|
|
|
default => sub { { |
112
|
|
|
|
|
|
|
'gregorian' => { |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
} }, |
115
|
|
|
|
|
|
|
); |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
has 'date_formats' => ( |
118
|
|
|
|
|
|
|
is => 'ro', |
119
|
|
|
|
|
|
|
isa => HashRef, |
120
|
|
|
|
|
|
|
init_arg => undef, |
121
|
|
|
|
|
|
|
default => sub { { |
122
|
|
|
|
|
|
|
'gregorian' => { |
123
|
|
|
|
|
|
|
}, |
124
|
|
|
|
|
|
|
} }, |
125
|
|
|
|
|
|
|
); |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
has 'time_formats' => ( |
128
|
|
|
|
|
|
|
is => 'ro', |
129
|
|
|
|
|
|
|
isa => HashRef, |
130
|
|
|
|
|
|
|
init_arg => undef, |
131
|
|
|
|
|
|
|
default => sub { { |
132
|
|
|
|
|
|
|
'gregorian' => { |
133
|
|
|
|
|
|
|
}, |
134
|
|
|
|
|
|
|
} }, |
135
|
|
|
|
|
|
|
); |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
138
|
|
|
|
|
|
|
is => 'ro', |
139
|
|
|
|
|
|
|
isa => HashRef, |
140
|
|
|
|
|
|
|
init_arg => undef, |
141
|
|
|
|
|
|
|
default => sub { { |
142
|
|
|
|
|
|
|
'gregorian' => { |
143
|
|
|
|
|
|
|
}, |
144
|
|
|
|
|
|
|
} }, |
145
|
|
|
|
|
|
|
); |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
148
|
|
|
|
|
|
|
is => 'ro', |
149
|
|
|
|
|
|
|
isa => HashRef, |
150
|
|
|
|
|
|
|
init_arg => undef, |
151
|
|
|
|
|
|
|
default => sub { { |
152
|
|
|
|
|
|
|
} }, |
153
|
|
|
|
|
|
|
); |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
156
|
|
|
|
|
|
|
is => 'ro', |
157
|
|
|
|
|
|
|
isa => HashRef, |
158
|
|
|
|
|
|
|
init_arg => undef, |
159
|
|
|
|
|
|
|
default => sub { { |
160
|
|
|
|
|
|
|
} }, |
161
|
|
|
|
|
|
|
); |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
164
|
|
|
|
|
|
|
is => 'ro', |
165
|
|
|
|
|
|
|
isa => HashRef, |
166
|
|
|
|
|
|
|
init_arg => undef, |
167
|
|
|
|
|
|
|
default => sub { { |
168
|
|
|
|
|
|
|
} }, |
169
|
|
|
|
|
|
|
); |
170
|
|
|
|
|
|
|
|
171
|
1
|
|
|
1
|
|
868
|
no Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
1; |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
# vim: tabstop=4 |