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