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