File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Ie.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::Ie - Package for language English
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/en_IE.xml
10             # on Mon 11 Apr 5:27:04 pm GMT
11              
12             use strict;
13 1     1   808 use warnings;
  1         2  
  1         23  
14 1     1   5 use version;
  1         1  
  1         17  
15 1     1   4  
  1         1  
  1         4  
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   5 use utf8;
  1         1  
  1         4  
21 1     1   32 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         1  
  1         16  
22 1     1   30 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         18  
23 1     1   75 use Moo;
  1         2  
  1         13  
24 1     1   763  
  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 'day_periods' => (
96             is => 'ro',
97             isa => HashRef,
98             init_arg => undef,
99             default => sub { {
100             'gregorian' => {
101             'format' => {
102             'wide' => {
103             'am' => q{a.m.},
104             'pm' => q{p.m.},
105             },
106             },
107             },
108             } },
109             );
110              
111             has 'eras' => (
112             is => 'ro',
113             isa => HashRef,
114             init_arg => undef,
115             default => sub { {
116             'generic' => {
117             },
118             'gregorian' => {
119             },
120             } },
121             );
122              
123             has 'date_formats' => (
124             is => 'ro',
125             isa => HashRef,
126             init_arg => undef,
127             default => sub { {
128             'generic' => {
129             'full' => q{EEEE d MMMM y G},
130             },
131             'gregorian' => {
132             'full' => q{EEEE d MMMM y},
133             },
134             } },
135             );
136              
137             has 'time_formats' => (
138             is => 'ro',
139             isa => HashRef,
140             init_arg => undef,
141             default => sub { {
142             'generic' => {
143             },
144             'gregorian' => {
145             'full' => q{HH:mm:ss zzzz},
146             'long' => q{HH:mm:ss z},
147             'medium' => q{HH:mm:ss},
148             'short' => q{HH:mm},
149             },
150             } },
151             );
152              
153             has 'datetime_formats' => (
154             is => 'ro',
155             isa => HashRef,
156             init_arg => undef,
157             default => sub { {
158             'generic' => {
159             },
160             'gregorian' => {
161             },
162             } },
163             );
164              
165             has 'datetime_formats_available_formats' => (
166             is => 'ro',
167             isa => HashRef,
168             init_arg => undef,
169             default => sub { {
170             'generic' => {
171             Md => q{d/M},
172             yyyyMEd => q{E, d/M/y G},
173             yyyyMMMEd => q{E d MMM y G},
174             yyyyMd => q{d/M/y G},
175             },
176             'gregorian' => {
177             MEd => q{E, d/M},
178             Md => q{d/M},
179             yMEd => q{E, d/M/y},
180             yMMMEd => q{E d MMM y},
181             yMd => q{d/M/y},
182             },
183             } },
184             );
185              
186             has 'datetime_formats_append_item' => (
187             is => 'ro',
188             isa => HashRef,
189             init_arg => undef,
190             default => sub { {
191             } },
192             );
193              
194             has 'datetime_formats_interval' => (
195             is => 'ro',
196             isa => HashRef,
197             init_arg => undef,
198             default => sub { {
199             'generic' => {
200             yM => {
201             M => q{MM/y – MM/y G},
202             y => q{MM/y – MM/y G},
203             },
204             yMEd => {
205             M => q{E dd/MM/y – E dd/MM/y G},
206             d => q{E dd/MM/y – E dd/MM/y G},
207             y => q{E dd/MM/y – E dd/MM/y G},
208             },
209             yMMMEd => {
210             M => q{E d MMM – E d MMM y G},
211             d => q{E d – E d MMM y G},
212             y => q{E d MMM y – E d MMM y G},
213             },
214             yMd => {
215             M => q{dd/MM/y – dd/MM/y G},
216             d => q{dd/MM/y – dd/MM/y G},
217             y => q{dd/MM/y – dd/MM/y G},
218             },
219             },
220             'gregorian' => {
221             yMEd => {
222             M => q{E dd/MM/y – E dd/MM/y},
223             d => q{E dd/MM/y – E dd/MM/y},
224             y => q{E dd/MM/y – E dd/MM/y},
225             },
226             yMMMEd => {
227             M => q{E d MMM – E d MMM y},
228             d => q{E d – E d MMM y},
229             y => q{E d MMM y – E d MMM y},
230             },
231             },
232             } },
233             );
234              
235             has 'time_zone_names' => (
236             is => 'ro',
237             isa => HashRef,
238             init_arg => undef,
239             default => sub { {
240             'Europe/Dublin' => {
241             short => {
242             'daylight' => q#IST#,
243             },
244             },
245             } }
246             );
247             no Moo;
248 1     1   1012  
  1         7  
  1         5  
249             1;
250              
251             # vim: tabstop=4