File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Ph.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::Es::Any::Ph - Package for language Spanish
4              
5             =cut
6              
7             package Locale::CLDR::Locales::Es::Any::Ph;
8             # This file auto generated from Data\common\main\es_PH.xml
9             # on Sun 24 Apr 8:25:47 am GMT
10              
11 1     1   2031 use version;
  1         2  
  1         9  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   135 use v5.10.1;
  1         5  
16 1     1   6 use mro 'c3';
  1         3  
  1         10  
17 1     1   86 use utf8;
  1         3  
  1         120  
18 1     1   2651 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         27  
19              
20 1     1   183 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         3  
  1         16  
21 1     1   1297 use Moo;
  1         2  
  1         10  
22              
23             extends('Locale::CLDR::Locales::Es::Any');
24             has 'currencies' => (
25             is => 'ro',
26             isa => HashRef,
27             init_arg => undef,
28             default => sub { {
29             'PHP' => {
30             symbol => '₱',
31             },
32             } },
33             );
34              
35              
36             has 'day_period_data' => (
37             is => 'ro',
38             isa => CodeRef,
39             init_arg => undef,
40             default => sub { sub {
41             # Time in hhmm format
42             my ($self, $type, $time, $day_period_type) = @_;
43             $day_period_type //= 'default';
44             SWITCH:
45             for ($type) {
46             if ($_ eq 'gregorian') {
47             if($day_period_type eq 'default') {
48             return 'noon' if $time == 1200;
49             return 'evening1' if $time >= 1200
50             && $time < 2000;
51             return 'night1' if $time >= 2000
52             && $time < 2400;
53             return 'morning2' if $time >= 600
54             && $time < 1200;
55             return 'morning1' if $time >= 0
56             && $time < 600;
57             }
58             if($day_period_type eq 'selection') {
59             return 'night1' if $time >= 2000
60             && $time < 2400;
61             return 'morning2' if $time >= 600
62             && $time < 1200;
63             return 'morning1' if $time >= 0
64             && $time < 600;
65             return 'evening1' if $time >= 1200
66             && $time < 2000;
67             }
68             last SWITCH;
69             }
70             }
71             } },
72             );
73              
74             around day_period_data => sub {
75             my ($orig, $self) = @_;
76             return $self->$orig;
77             };
78              
79             has 'eras' => (
80             is => 'ro',
81             isa => HashRef,
82             init_arg => undef,
83             default => sub { {
84             'gregorian' => {
85             },
86             } },
87             );
88              
89             has 'date_formats' => (
90             is => 'ro',
91             isa => HashRef,
92             init_arg => undef,
93             default => sub { {
94             'gregorian' => {
95             },
96             } },
97             );
98              
99             has 'time_formats' => (
100             is => 'ro',
101             isa => HashRef,
102             init_arg => undef,
103             default => sub { {
104             'gregorian' => {
105             'full' => q{h:mm:ss a zzzz},
106             'long' => q{h:mm:ss a z},
107             'medium' => q{h:mm:ss a},
108             'short' => q{h:mm a},
109             },
110             } },
111             );
112              
113             has 'datetime_formats' => (
114             is => 'ro',
115             isa => HashRef,
116             init_arg => undef,
117             default => sub { {
118             'gregorian' => {
119             },
120             } },
121             );
122              
123             has 'datetime_formats_available_formats' => (
124             is => 'ro',
125             isa => HashRef,
126             init_arg => undef,
127             default => sub { {
128             } },
129             );
130              
131             has 'datetime_formats_append_item' => (
132             is => 'ro',
133             isa => HashRef,
134             init_arg => undef,
135             default => sub { {
136             } },
137             );
138              
139             has 'datetime_formats_interval' => (
140             is => 'ro',
141             isa => HashRef,
142             init_arg => undef,
143             default => sub { {
144             } },
145             );
146              
147 1     1   4891 no Moo;
  1         2  
  1         8  
148              
149             1;
150              
151             # vim: tabstop=4