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