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