File Coverage

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