File Coverage

blib/lib/Locale/CLDR/Locales/En/Latn/150.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 NAME
4              
5             Locale::CLDR::Locales::En::Latn::150 - Package for language English
6              
7             =cut
8              
9             package Locale::CLDR::Locales::En::Latn::150;
10             # This file auto generated from Data\common\main\en_150.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1785 use strict;
  1         3  
  1         82  
14 1     1   9 use warnings;
  1         2  
  1         71  
15 1     1   7 use version;
  1         2  
  1         9  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   148 use v5.12.0;
  1         5  
20 1     1   9 use mro 'c3';
  1         3  
  1         31  
21 1     1   59 use utf8;
  1         2  
  1         9  
22 1     1   41 use feature 'unicode_strings';
  1         2  
  1         177  
23 1     1   8 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         13  
24 1     1   3081 use Moo;
  1         2  
  1         8  
25              
26             extends('Locale::CLDR::Locales::En::Latn::001');
27             has 'number_currency_formats' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => sub { {
32             'latn' => {
33             'pattern' => {
34             'default' => {
35             'accounting' => {
36             'positive' => '#,##0.00 ¤',
37             },
38             'standard' => {
39             'positive' => '#,##0.00 ¤',
40             },
41             },
42             },
43             },
44             } },
45             );
46              
47             has 'day_period_data' => (
48             is => 'ro',
49             isa => CodeRef,
50             init_arg => undef,
51             default => sub { sub {
52             # Time in hhmm format
53             my ($self, $type, $time, $day_period_type) = @_;
54             $day_period_type //= 'default';
55             SWITCH:
56             for ($type) {
57             if ($_ eq 'gregorian') {
58             if($day_period_type eq 'default') {
59             return 'midnight' if $time == 0;
60             return 'noon' if $time == 1200;
61             return 'afternoon1' if $time >= 1200
62             && $time < 1800;
63             return 'evening1' if $time >= 1800
64             && $time < 2100;
65             return 'morning1' if $time >= 600
66             && $time < 1200;
67             return 'night1' if $time >= 2100;
68             return 'night1' if $time < 600;
69             }
70             if($day_period_type eq 'selection') {
71             return 'afternoon1' if $time >= 1200
72             && $time < 1800;
73             return 'evening1' if $time >= 1800
74             && $time < 2100;
75             return 'morning1' if $time >= 600
76             && $time < 1200;
77             return 'night1' if $time >= 2100;
78             return 'night1' if $time < 600;
79             }
80             last SWITCH;
81             }
82             }
83             } },
84             );
85              
86             around day_period_data => sub {
87             my ($orig, $self) = @_;
88             return $self->$orig;
89             };
90              
91             has 'eras' => (
92             is => 'ro',
93             isa => HashRef,
94             init_arg => undef,
95             default => sub { {
96             'gregorian' => {
97             },
98             } },
99             );
100              
101             has 'date_formats' => (
102             is => 'ro',
103             isa => HashRef,
104             init_arg => undef,
105             default => sub { {
106             'gregorian' => {
107             },
108             } },
109             );
110              
111             has 'time_formats' => (
112             is => 'ro',
113             isa => HashRef,
114             init_arg => undef,
115             default => sub { {
116             'gregorian' => {
117             'full' => q{HH:mm:ss zzzz},
118             'long' => q{HH:mm:ss z},
119             'medium' => q{HH:mm:ss},
120             'short' => q{HH:mm},
121             },
122             } },
123             );
124              
125             has 'datetime_formats' => (
126             is => 'ro',
127             isa => HashRef,
128             init_arg => undef,
129             default => sub { {
130             'gregorian' => {
131             },
132             } },
133             );
134              
135             has 'datetime_formats_available_formats' => (
136             is => 'ro',
137             isa => HashRef,
138             init_arg => undef,
139             default => sub { {
140             } },
141             );
142              
143             has 'datetime_formats_append_item' => (
144             is => 'ro',
145             isa => HashRef,
146             init_arg => undef,
147             default => sub { {
148             } },
149             );
150              
151             has 'datetime_formats_interval' => (
152             is => 'ro',
153             isa => HashRef,
154             init_arg => undef,
155             default => sub { {
156             } },
157             );
158              
159             has 'time_zone_names' => (
160             is => 'ro',
161             isa => HashRef,
162             init_arg => undef,
163             default => sub { {
164             'Europe_Central' => {
165             short => {
166             'daylight' => q#CEST#,
167             'generic' => q#CET#,
168             'standard' => q#CET#,
169             },
170             },
171             'Europe_Eastern' => {
172             short => {
173             'daylight' => q#EEST#,
174             'generic' => q#EET#,
175             'standard' => q#EET#,
176             },
177             },
178             'Europe_Western' => {
179             short => {
180             'daylight' => q#WEST#,
181             'generic' => q#WET#,
182             'standard' => q#WET#,
183             },
184             },
185             } }
186             );
187 1     1   1883 no Moo;
  1         4  
  1         8  
188              
189             1;
190              
191             # vim: tabstop=4