File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Fi.pm
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


line stmt bran cond sub pod time code
1             =head1
2              
3             Locale::CLDR::Locales::En::Any::Fi - Package for language English
4              
5             =cut
6              
7             package Locale::CLDR::Locales::En::Any::Fi;
8             # This file auto generated from Data\common\main\en_FI.xml
9             # on Sun 24 Apr 8:24:38 am GMT
10              
11 1     1   755 use version;
  1         1  
  1         5  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   77 use v5.10.1;
  1         2  
16 1     1   4 use mro 'c3';
  1         1  
  1         6  
17 1     1   34 use utf8;
  1         1  
  1         5  
18 1     1   31 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         1  
  1         10  
19              
20 1     1   84 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         6  
21 1     1   614 use Moo;
  1         1  
  1         5  
22              
23             extends('Locale::CLDR::Locales::En::Any::150');
24             has 'number_symbols' => (
25             is => 'ro',
26             isa => HashRef,
27             init_arg => undef,
28             default => sub { {
29             'latn' => {
30             'group' => q( ),
31             'timeSeparator' => q(.),
32             },
33             } }
34             );
35              
36             has 'number_formats' => (
37             is => 'ro',
38             isa => HashRef,
39             init_arg => undef,
40             default => sub { {
41             percentFormat => {
42             'default' => {
43             'standard' => {
44             '' => '#,##0 %',
45             },
46             },
47             },
48             } },
49             );
50              
51             has 'day_period_data' => (
52             is => 'ro',
53             isa => CodeRef,
54             init_arg => undef,
55             default => sub { sub {
56             # Time in hhmm format
57             my ($self, $type, $time, $day_period_type) = @_;
58             $day_period_type //= 'default';
59             SWITCH:
60             for ($type) {
61             if ($_ eq 'generic') {
62             if($day_period_type eq 'default') {
63             return 'noon' if $time == 1200;
64             return 'midnight' if $time == 0;
65             return 'evening1' if $time >= 1800
66             && $time < 2100;
67             return 'night1' if $time >= 2100;
68             return 'night1' if $time < 600;
69             return 'afternoon1' if $time >= 1200
70             && $time < 1800;
71             return 'morning1' if $time >= 600
72             && $time < 1200;
73             }
74             if($day_period_type eq 'selection') {
75             return 'afternoon1' if $time >= 1200
76             && $time < 1800;
77             return 'morning1' if $time >= 600
78             && $time < 1200;
79             return 'night1' if $time >= 2100;
80             return 'night1' if $time < 600;
81             return 'evening1' if $time >= 1800
82             && $time < 2100;
83             }
84             last SWITCH;
85             }
86             if ($_ eq 'gregorian') {
87             if($day_period_type eq 'default') {
88             return 'noon' if $time == 1200;
89             return 'midnight' if $time == 0;
90             return 'evening1' if $time >= 1800
91             && $time < 2100;
92             return 'night1' if $time >= 2100;
93             return 'night1' if $time < 600;
94             return 'afternoon1' if $time >= 1200
95             && $time < 1800;
96             return 'morning1' if $time >= 600
97             && $time < 1200;
98             }
99             if($day_period_type eq 'selection') {
100             return 'afternoon1' if $time >= 1200
101             && $time < 1800;
102             return 'morning1' if $time >= 600
103             && $time < 1200;
104             return 'night1' if $time >= 2100;
105             return 'night1' if $time < 600;
106             return 'evening1' if $time >= 1800
107             && $time < 2100;
108             }
109             last SWITCH;
110             }
111             }
112             } },
113             );
114              
115             around day_period_data => sub {
116             my ($orig, $self) = @_;
117             return $self->$orig;
118             };
119              
120             has 'eras' => (
121             is => 'ro',
122             isa => HashRef,
123             init_arg => undef,
124             default => sub { {
125             'generic' => {
126             },
127             'gregorian' => {
128             },
129             } },
130             );
131              
132             has 'date_formats' => (
133             is => 'ro',
134             isa => HashRef,
135             init_arg => undef,
136             default => sub { {
137             'generic' => {
138             },
139             'gregorian' => {
140             },
141             } },
142             );
143              
144             has 'time_formats' => (
145             is => 'ro',
146             isa => HashRef,
147             init_arg => undef,
148             default => sub { {
149             'generic' => {
150             },
151             'gregorian' => {
152             'full' => q{H.mm.ss zzzz},
153             'long' => q{H.mm.ss z},
154             'medium' => q{H.mm.ss},
155             'short' => q{H.mm},
156             },
157             } },
158             );
159              
160             has 'datetime_formats' => (
161             is => 'ro',
162             isa => HashRef,
163             init_arg => undef,
164             default => sub { {
165             'generic' => {
166             },
167             'gregorian' => {
168             },
169             } },
170             );
171              
172             has 'datetime_formats_available_formats' => (
173             is => 'ro',
174             isa => HashRef,
175             init_arg => undef,
176             default => sub { {
177             'gregorian' => {
178             EHm => q{E H.mm},
179             EHms => q{E H.mm.ss},
180             Ehm => q{E h.mm a},
181             Ehms => q{E h.mm.ss a},
182             Hm => q{H.mm},
183             Hms => q{H.mm.ss},
184             Hmsv => q{H.mm.ss v},
185             Hmv => q{H.mm v},
186             hm => q{h.mm a},
187             hms => q{h.mm.ss a},
188             hmsv => q{h.mm.ss a v},
189             hmv => q{h.mm a v},
190             ms => q{mm.ss},
191             },
192             'generic' => {
193             EHm => q{E H.mm},
194             EHms => q{E H.mm.ss},
195             Ehm => q{E h.mm a},
196             Ehms => q{E h.mm.ss a},
197             Hm => q{H.mm},
198             Hms => q{H.mm.ss},
199             Hmsv => q{H.mm.ss v},
200             Hmv => q{H.mm v},
201             hm => q{h.mm a},
202             hms => q{h.mm.ss a},
203             hmsv => q{h.mm.ss a v},
204             hmv => q{h.mm a v},
205             ms => q{mm.ss},
206             },
207             } },
208             );
209              
210             has 'datetime_formats_append_item' => (
211             is => 'ro',
212             isa => HashRef,
213             init_arg => undef,
214             default => sub { {
215             } },
216             );
217              
218             has 'datetime_formats_interval' => (
219             is => 'ro',
220             isa => HashRef,
221             init_arg => undef,
222             default => sub { {
223             } },
224             );
225              
226 1     1   2267 no Moo;
  1         1  
  1         6  
227              
228             1;
229              
230             # vim: tabstop=4