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