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