File Coverage

blib/lib/Locale/CLDR/Locales/De/Any/It.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::De::Any::It - Package for language German
6              
7             =cut
8              
9             package Locale::CLDR::Locales::De::Any::It;
10             # This file auto generated from Data\common\main\de_IT.xml
11             # on Sun 16 Dec 4:11:48 pm GMT
12              
13 1     1   1151 use strict;
  1         3  
  1         30  
14 1     1   6 use warnings;
  1         3  
  1         24  
15 1     1   5 use version;
  1         2  
  1         7  
16              
17             our $VERSION = version->declare('v0.34.0');
18              
19 1     1   106 use v5.10.1;
  1         4  
20 1     1   7 use mro 'c3';
  1         3  
  1         6  
21 1     1   27 use utf8;
  1         2  
  1         5  
22 1     1   46 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         14  
23 1     1   102 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         7  
24 1     1   1105 use Moo;
  1         2  
  1         6  
25              
26             extends('Locale::CLDR::Locales::De::Any');
27             has 'calendar_months' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => sub { {
32             'gregorian' => {
33             'format' => {
34             abbreviated => {
35             nonleap => [
36             'Jän.',
37             'Feb.',
38             'März',
39             'Apr.',
40             'Mai',
41             'Juni',
42             'Juli',
43             'Aug.',
44             'Sep.',
45             'Okt.',
46             'Nov.',
47             'Dez.'
48             ],
49             leap => [
50            
51             ],
52             },
53             wide => {
54             nonleap => [
55             'Jänner',
56             'Februar',
57             'März',
58             'April',
59             'Mai',
60             'Juni',
61             'Juli',
62             'August',
63             'September',
64             'Oktober',
65             'November',
66             'Dezember'
67             ],
68             leap => [
69            
70             ],
71             },
72             },
73             'stand-alone' => {
74             abbreviated => {
75             nonleap => [
76             'Jän',
77             'Feb',
78             'Mär',
79             'Apr',
80             'Mai',
81             'Jun',
82             'Jul',
83             'Aug',
84             'Sep',
85             'Okt',
86             'Nov',
87             'Dez'
88             ],
89             leap => [
90            
91             ],
92             },
93             wide => {
94             nonleap => [
95             'Jänner',
96             'Februar',
97             'März',
98             'April',
99             'Mai',
100             'Juni',
101             'Juli',
102             'August',
103             'September',
104             'Oktober',
105             'November',
106             'Dezember'
107             ],
108             leap => [
109            
110             ],
111             },
112             },
113             },
114             } },
115             );
116              
117             has 'day_period_data' => (
118             is => 'ro',
119             isa => CodeRef,
120             init_arg => undef,
121             default => sub { sub {
122             # Time in hhmm format
123             my ($self, $type, $time, $day_period_type) = @_;
124             $day_period_type //= 'default';
125             SWITCH:
126             for ($type) {
127             if ($_ eq 'gregorian') {
128             if($day_period_type eq 'selection') {
129             return 'afternoon1' if $time >= 1200
130             && $time < 1300;
131             return 'morning1' if $time >= 500
132             && $time < 1000;
133             return 'evening1' if $time >= 1800
134             && $time < 2400;
135             return 'morning2' if $time >= 1000
136             && $time < 1200;
137             return 'afternoon2' if $time >= 1300
138             && $time < 1800;
139             return 'night1' if $time >= 0
140             && $time < 500;
141             }
142             if($day_period_type eq 'default') {
143             return 'midnight' if $time == 0;
144             return 'night1' if $time >= 0
145             && $time < 500;
146             return 'afternoon2' if $time >= 1300
147             && $time < 1800;
148             return 'morning2' if $time >= 1000
149             && $time < 1200;
150             return 'evening1' if $time >= 1800
151             && $time < 2400;
152             return 'afternoon1' if $time >= 1200
153             && $time < 1300;
154             return 'morning1' if $time >= 500
155             && $time < 1000;
156             }
157             last SWITCH;
158             }
159             }
160             } },
161             );
162              
163             around day_period_data => sub {
164             my ($orig, $self) = @_;
165             return $self->$orig;
166             };
167              
168             has 'eras' => (
169             is => 'ro',
170             isa => HashRef,
171             init_arg => undef,
172             default => sub { {
173             'gregorian' => {
174             },
175             } },
176             );
177              
178             has 'date_formats' => (
179             is => 'ro',
180             isa => HashRef,
181             init_arg => undef,
182             default => sub { {
183             'gregorian' => {
184             },
185             } },
186             );
187              
188             has 'time_formats' => (
189             is => 'ro',
190             isa => HashRef,
191             init_arg => undef,
192             default => sub { {
193             'gregorian' => {
194             },
195             } },
196             );
197              
198             has 'datetime_formats' => (
199             is => 'ro',
200             isa => HashRef,
201             init_arg => undef,
202             default => sub { {
203             'gregorian' => {
204             },
205             } },
206             );
207              
208             has 'datetime_formats_available_formats' => (
209             is => 'ro',
210             isa => HashRef,
211             init_arg => undef,
212             default => sub { {
213             } },
214             );
215              
216             has 'datetime_formats_append_item' => (
217             is => 'ro',
218             isa => HashRef,
219             init_arg => undef,
220             default => sub { {
221             } },
222             );
223              
224             has 'datetime_formats_interval' => (
225             is => 'ro',
226             isa => HashRef,
227             init_arg => undef,
228             default => sub { {
229             } },
230             );
231              
232 1     1   1285 no Moo;
  1         3  
  1         6  
233              
234             1;
235              
236             # vim: tabstop=4