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