File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Il.pm
Criterion Covered Total %
statement 29 29 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod n/a
total 39 39 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1
4              
5             Locale::CLDR::Locales::En::Any::Il - Package for language English
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/en_IL.xml
10             # on Mon 11 Apr 5:27:04 pm GMT
11              
12             use strict;
13 1     1   965 use warnings;
  1         2  
  1         24  
14 1     1   4 use version;
  1         2  
  1         17  
15 1     1   5  
  1         2  
  1         4  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 1     1   77 use mro 'c3';
  1         3  
20 1     1   5 use utf8;
  1         1  
  1         5  
21 1     1   20 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         4  
22 1     1   41 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         11  
23 1     1   75 use Moo;
  1         2  
  1         15  
24 1     1   785  
  1         2  
  1         4  
25             extends('Locale::CLDR::Locales::En::Any::001');
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 'generic') {
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 < 2100;
44             return 'morning1' if $time >= 600
45             && $time < 1200;
46             return 'night1' if $time >= 2100;
47             return 'night1' if $time < 600;
48             }
49             if($day_period_type eq 'selection') {
50             return 'afternoon1' if $time >= 1200
51             && $time < 1800;
52             return 'evening1' if $time >= 1800
53             && $time < 2100;
54             return 'morning1' if $time >= 600
55             && $time < 1200;
56             return 'night1' if $time >= 2100;
57             return 'night1' if $time < 600;
58             }
59             last SWITCH;
60             }
61             if ($_ eq 'gregorian') {
62             if($day_period_type eq 'default') {
63             return 'midnight' if $time == 0;
64             return 'noon' if $time == 1200;
65             return 'afternoon1' if $time >= 1200
66             && $time < 1800;
67             return 'evening1' if $time >= 1800
68             && $time < 2100;
69             return 'morning1' if $time >= 600
70             && $time < 1200;
71             return 'night1' if $time >= 2100;
72             return 'night1' if $time < 600;
73             }
74             if($day_period_type eq 'selection') {
75             return 'afternoon1' if $time >= 1200
76             && $time < 1800;
77             return 'evening1' if $time >= 1800
78             && $time < 2100;
79             return 'morning1' if $time >= 600
80             && $time < 1200;
81             return 'night1' if $time >= 2100;
82             return 'night1' if $time < 600;
83             }
84             last SWITCH;
85             }
86             }
87             } },
88             );
89              
90             around day_period_data => sub {
91             my ($orig, $self) = @_;
92             return $self->$orig;
93             };
94              
95             has 'eras' => (
96             is => 'ro',
97             isa => HashRef,
98             init_arg => undef,
99             default => sub { {
100             'generic' => {
101             },
102             'gregorian' => {
103             },
104             } },
105             );
106              
107             has 'date_formats' => (
108             is => 'ro',
109             isa => HashRef,
110             init_arg => undef,
111             default => sub { {
112             'generic' => {
113             },
114             'gregorian' => {
115             },
116             } },
117             );
118              
119             has 'time_formats' => (
120             is => 'ro',
121             isa => HashRef,
122             init_arg => undef,
123             default => sub { {
124             'generic' => {
125             },
126             'gregorian' => {
127             'full' => q{H:mm:ss zzzz},
128             'long' => q{H:mm:ss z},
129             'medium' => q{H:mm:ss},
130             'short' => q{H:mm},
131             },
132             } },
133             );
134              
135             has 'datetime_formats' => (
136             is => 'ro',
137             isa => HashRef,
138             init_arg => undef,
139             default => sub { {
140             'generic' => {
141             },
142             'gregorian' => {
143             },
144             } },
145             );
146              
147             has 'datetime_formats_available_formats' => (
148             is => 'ro',
149             isa => HashRef,
150             init_arg => undef,
151             default => sub { {
152             'generic' => {
153             EHm => q{E H:mm},
154             EHms => q{E H:mm:ss},
155             H => q{H},
156             Hm => q{H:mm},
157             Hms => q{H:mm:ss},
158             },
159             'gregorian' => {
160             EHm => q{E H:mm},
161             EHms => q{E H:mm:ss},
162             H => q{H},
163             Hm => q{H:mm},
164             Hms => q{H:mm:ss},
165             },
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   873  
  1         2  
  1         4  
187             1;
188              
189             # vim: tabstop=4