File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Nz.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 27 27 100.0


line stmt bran cond sub pod time code
1             =head1
2              
3             Locale::CLDR::Locales::En::Any::Nz - Package for language English
4              
5             =cut
6              
7             package Locale::CLDR::Locales::En::Any::Nz;
8             # This file auto generated from Data\common\main\en_NZ.xml
9             # on Sun 15 Nov 4:10:20 pm GMT
10              
11 1     1   38855 use version;
  1         4  
  1         11  
12              
13             our $VERSION = version->declare('v0.28.2');
14              
15 1     1   161 use v5.10.1;
  1         5  
16 1     1   7 use mro 'c3';
  1         2  
  1         12  
17 1     1   55 use utf8;
  1         3  
  1         11  
18 1     1   51 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         3  
  1         22  
19              
20 1     1   159 use Moose;
  1         3  
  1         12  
21              
22             extends('Locale::CLDR::Locales::En::Any::001');
23             has 'currencies' => (
24             is => 'ro',
25             isa => 'HashRef',
26             init_arg => undef,
27             default => sub { {
28             'NZD' => {
29             symbol => '$',
30             },
31             } },
32             );
33              
34              
35             has 'day_period_data' => (
36             traits => ['Code'],
37             is => 'ro',
38             isa => 'CodeRef',
39             init_arg => undef,
40             handles => { call => 'execute_method' },
41             default => sub { sub {
42             # Time in hhmm format
43             my ($self, $type, $time, $day_period_type) = @_;
44             $day_period_type //= 'default';
45             SWITCH:
46             for ($type) {
47             if ($_ eq 'gregorian') {
48             if($day_period_type eq 'selection') {
49             return 'morning1' if $time >= 600
50             && $time < 1200;
51             return 'night1' if $time >= 2100
52             && $time < 2400;
53             return 'evening1' if $time >= 1800
54             && $time < 2100;
55             return 'afternoon1' if $time >= 1200
56             && $time < 1800;
57             }
58             if($day_period_type eq 'default') {
59             return 'noon' if $time == 1200;
60             return 'afternoon1' if $time > 1200
61             && $time < 1800;
62             return 'evening1' if $time >= 1800
63             && $time < 2100;
64             return 'night1' if $time >= 2100
65             && $time < 2400;
66             return 'midnight' if $time == 0;
67             return 'morning1' if $time >= 600
68             && $time < 1200;
69             }
70             last SWITCH;
71             }
72             if ($_ eq 'generic') {
73             if($day_period_type eq 'selection') {
74             return 'morning1' if $time >= 600
75             && $time < 1200;
76             return 'night1' if $time >= 2100
77             && $time < 2400;
78             return 'evening1' if $time >= 1800
79             && $time < 2100;
80             return 'afternoon1' if $time >= 1200
81             && $time < 1800;
82             }
83             if($day_period_type eq 'default') {
84             return 'noon' if $time == 1200;
85             return 'afternoon1' if $time > 1200
86             && $time < 1800;
87             return 'evening1' if $time >= 1800
88             && $time < 2100;
89             return 'night1' if $time >= 2100
90             && $time < 2400;
91             return 'midnight' if $time == 0;
92             return 'morning1' if $time >= 600
93             && $time < 1200;
94             }
95             last SWITCH;
96             }
97             }
98             } },
99             );
100              
101             has 'eras' => (
102             is => 'ro',
103             isa => 'HashRef',
104             init_arg => undef,
105             default => sub { {
106             'generic' => {
107             },
108             'gregorian' => {
109             },
110             } },
111             );
112              
113             has 'date_formats' => (
114             is => 'ro',
115             isa => 'HashRef',
116             init_arg => undef,
117             default => sub { {
118             'generic' => {
119             'medium' => q{d/MM/y G},
120             'short' => q{d/MM/y GGGGG},
121             },
122             'gregorian' => {
123             'medium' => q{d/MM/y},
124             'short' => q{d/MM/yy},
125             },
126             } },
127             );
128              
129             has 'time_formats' => (
130             is => 'ro',
131             isa => 'HashRef',
132             init_arg => undef,
133             default => sub { {
134             'generic' => {
135             },
136             'gregorian' => {
137             },
138             } },
139             );
140              
141             has 'datetime_formats' => (
142             is => 'ro',
143             isa => 'HashRef',
144             init_arg => undef,
145             default => sub { {
146             'generic' => {
147             },
148             'gregorian' => {
149             },
150             } },
151             );
152              
153             has 'datetime_formats_available_formats' => (
154             is => 'ro',
155             isa => 'HashRef',
156             init_arg => undef,
157             default => sub { {
158             'generic' => {
159             Md => q{d/M},
160             yyyyMd => q{d/MM/y G},
161             },
162             'gregorian' => {
163             Md => q{d/M},
164             yMd => q{d/MM/y},
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             'generic' => {
183             MEd => {
184             M => q{E, d/MM – E, d/MM},
185             d => q{E, d/MM – E, d/MM},
186             },
187             MMMEd => {
188             M => q{E, d MMM – E, d MMM},
189             d => q{E, d – E, d MMM},
190             },
191             Md => {
192             M => q{d/MM – d/MM},
193             d => q{d/MM – d/MM},
194             },
195             yM => {
196             M => q{MM/y – MM/y G},
197             y => q{MM/y – MM/y G},
198             },
199             yMEd => {
200             M => q{E, d/MM/y – E, d/MM/y G},
201             d => q{E, d/MM/y – E, d/MM/y G},
202             y => q{E, d/MM/y – E, d/MM/y G},
203             },
204             yMd => {
205             M => q{d/MM/y – d/MM/y G},
206             d => q{d/MM/y – d/MM/y G},
207             y => q{d/MM/y – d/MM/y G},
208             },
209             },
210             'gregorian' => {
211             MEd => {
212             M => q{E, d/MM – E, d/MM},
213             d => q{E, d/MM – E, d/MM},
214             },
215             MMMEd => {
216             M => q{E, d MMM – E, d MMM},
217             d => q{E, d – E, d MMM},
218             },
219             Md => {
220             M => q{d/MM – d/MM},
221             d => q{d/MM – d/MM},
222             },
223             yMEd => {
224             M => q{E, d/MM/y – E, d/MM/y},
225             d => q{E, d/MM/y – E, d/MM/y},
226             y => q{E, d/MM/y – E, d/MM/y},
227             },
228             yMd => {
229             M => q{d/MM/y – d/MM/y},
230             d => q{d/MM/y – d/MM/y},
231             y => q{d/MM/y – d/MM/y},
232             },
233             },
234             } },
235             );
236              
237             has 'time_zone_names' => (
238             is => 'ro',
239             isa => 'HashRef',
240             init_arg => undef,
241             default => sub { {
242             'Australia_Central' => {
243             short => {
244             'daylight' => q(ACDT),
245             'generic' => q(ACT),
246             'standard' => q(ACST),
247             },
248             },
249             'Australia_CentralWestern' => {
250             short => {
251             'daylight' => q(ACWDT),
252             'generic' => q(ACWT),
253             'standard' => q(ACWST),
254             },
255             },
256             'Australia_Eastern' => {
257             short => {
258             'daylight' => q(AEDT),
259             'generic' => q(AET),
260             'standard' => q(AEST),
261             },
262             },
263             'Australia_Western' => {
264             short => {
265             'daylight' => q(AWDT),
266             'generic' => q(AWT),
267             'standard' => q(AWST),
268             },
269             },
270             'Chatham' => {
271             short => {
272             'daylight' => q(CHADT),
273             'generic' => q(CHAT),
274             'standard' => q(CHAST),
275             },
276             },
277             'Lord_Howe' => {
278             short => {
279             'daylight' => q(LHDT),
280             'generic' => q(LHT),
281             'standard' => q(LHST),
282             },
283             },
284             'New_Zealand' => {
285             short => {
286             'daylight' => q(NZDT),
287             'generic' => q(NZT),
288             'standard' => q(NZST),
289             },
290             },
291             } }
292             );
293 1     1   10774 no Moose;
  1         3  
  1         8  
294             __PACKAGE__->meta->make_immutable;
295              
296             1;
297              
298             # vim: tabstop=4