File Coverage

blib/lib/Locale/CLDR/Locales/De/Latn/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 NAME
4              
5             Locale::CLDR::Locales::De::Latn::It - Package for language German
6              
7             =cut
8              
9             package Locale::CLDR::Locales::De::Latn::It;
10             # This file auto generated from Data\common\main\de_IT.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   2619 use strict;
  1         3  
  1         35  
14 1     1   4 use warnings;
  1         3  
  1         72  
15 1     1   5 use version;
  1         2  
  1         8  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   1485 use v5.12.0;
  1         4  
20 1     1   6 use mro 'c3';
  1         1  
  1         9  
21 1     1   24 use utf8;
  1         2  
  1         25  
22 1     1   49 use feature 'unicode_strings';
  1         2  
  1         167  
23 1     1   5 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         27  
24 1     1   5757 use Moo;
  1         2  
  1         10  
25              
26             extends('Locale::CLDR::Locales::De::Latn');
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             },
94             },
95             } },
96             );
97              
98             has 'day_period_data' => (
99             is => 'ro',
100             isa => CodeRef,
101             init_arg => undef,
102             default => sub { sub {
103             # Time in hhmm format
104             my ($self, $type, $time, $day_period_type) = @_;
105             $day_period_type //= 'default';
106             SWITCH:
107             for ($type) {
108             if ($_ eq 'gregorian') {
109             if($day_period_type eq 'default') {
110             return 'midnight' if $time == 0;
111             return 'afternoon1' if $time >= 1200
112             && $time < 1300;
113             return 'afternoon2' if $time >= 1300
114             && $time < 1800;
115             return 'evening1' if $time >= 1800
116             && $time < 2400;
117             return 'morning1' if $time >= 500
118             && $time < 1000;
119             return 'morning2' if $time >= 1000
120             && $time < 1200;
121             return 'night1' if $time >= 0
122             && $time < 500;
123             }
124             if($day_period_type eq 'selection') {
125             return 'afternoon1' if $time >= 1200
126             && $time < 1300;
127             return 'afternoon2' if $time >= 1300
128             && $time < 1800;
129             return 'evening1' if $time >= 1800
130             && $time < 2400;
131             return 'morning1' if $time >= 500
132             && $time < 1000;
133             return 'morning2' if $time >= 1000
134             && $time < 1200;
135             return 'night1' if $time >= 0
136             && $time < 500;
137             }
138             last SWITCH;
139             }
140             }
141             } },
142             );
143              
144             around day_period_data => sub {
145             my ($orig, $self) = @_;
146             return $self->$orig;
147             };
148              
149             has 'eras' => (
150             is => 'ro',
151             isa => HashRef,
152             init_arg => undef,
153             default => sub { {
154             'gregorian' => {
155             },
156             } },
157             );
158              
159             has 'date_formats' => (
160             is => 'ro',
161             isa => HashRef,
162             init_arg => undef,
163             default => sub { {
164             'gregorian' => {
165             },
166             } },
167             );
168              
169             has 'time_formats' => (
170             is => 'ro',
171             isa => HashRef,
172             init_arg => undef,
173             default => sub { {
174             'gregorian' => {
175             },
176             } },
177             );
178              
179             has 'datetime_formats' => (
180             is => 'ro',
181             isa => HashRef,
182             init_arg => undef,
183             default => sub { {
184             'gregorian' => {
185             },
186             } },
187             );
188              
189             has 'datetime_formats_available_formats' => (
190             is => 'ro',
191             isa => HashRef,
192             init_arg => undef,
193             default => sub { {
194             } },
195             );
196              
197             has 'datetime_formats_append_item' => (
198             is => 'ro',
199             isa => HashRef,
200             init_arg => undef,
201             default => sub { {
202             } },
203             );
204              
205             has 'datetime_formats_interval' => (
206             is => 'ro',
207             isa => HashRef,
208             init_arg => undef,
209             default => sub { {
210             } },
211             );
212              
213 1     1   1203 no Moo;
  1         1  
  1         6  
214              
215             1;
216              
217             # vim: tabstop=4