File Coverage

blib/lib/Locale/CLDR/Locales/Nl/Latn/Be.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::Nl::Latn::Be - Package for language Dutch
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Nl::Latn::Be;
10             # This file auto generated from Data\common\main\nl_BE.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1513 use strict;
  1         1  
  1         32  
14 1     1   5 use warnings;
  1         1  
  1         36  
15 1     1   3 use version;
  1         2  
  1         5  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   87 use v5.12.0;
  1         4  
20 1     1   3 use mro 'c3';
  1         2  
  1         19  
21 1     1   28 use utf8;
  1         1  
  1         6  
22 1     1   22 use feature 'unicode_strings';
  1         1  
  1         114  
23 1     1   4 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         6  
24 1     1   1874 use Moo;
  1         20  
  1         6  
25              
26             extends('Locale::CLDR::Locales::Nl::Latn');
27             has 'display_name_region' => (
28             is => 'ro',
29             isa => HashRef[Str],
30             init_arg => undef,
31             default => sub {
32             {
33             '013' => 'Centraal-Amerika',
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 'generic') {
50             if($day_period_type eq 'default') {
51             return 'midnight' if $time == 0;
52             return 'afternoon1' if $time >= 1200
53             && $time < 1800;
54             return 'evening1' if $time >= 1800
55             && $time < 2400;
56             return 'morning1' if $time >= 600
57             && $time < 1200;
58             return 'night1' if $time >= 0
59             && $time < 600;
60             }
61             if($day_period_type eq 'selection') {
62             return 'afternoon1' if $time >= 1200
63             && $time < 1800;
64             return 'evening1' if $time >= 1800
65             && $time < 2400;
66             return 'morning1' if $time >= 600
67             && $time < 1200;
68             return 'night1' if $time >= 0
69             && $time < 600;
70             }
71             last SWITCH;
72             }
73             if ($_ eq 'gregorian') {
74             if($day_period_type eq 'default') {
75             return 'midnight' if $time == 0;
76             return 'afternoon1' if $time >= 1200
77             && $time < 1800;
78             return 'evening1' if $time >= 1800
79             && $time < 2400;
80             return 'morning1' if $time >= 600
81             && $time < 1200;
82             return 'night1' if $time >= 0
83             && $time < 600;
84             }
85             if($day_period_type eq 'selection') {
86             return 'afternoon1' if $time >= 1200
87             && $time < 1800;
88             return 'evening1' if $time >= 1800
89             && $time < 2400;
90             return 'morning1' if $time >= 600
91             && $time < 1200;
92             return 'night1' if $time >= 0
93             && $time < 600;
94             }
95             last SWITCH;
96             }
97             }
98             } },
99             );
100              
101             around day_period_data => sub {
102             my ($orig, $self) = @_;
103             return $self->$orig;
104             };
105              
106             has 'eras' => (
107             is => 'ro',
108             isa => HashRef,
109             init_arg => undef,
110             default => sub { {
111             'generic' => {
112             },
113             'gregorian' => {
114             },
115             } },
116             );
117              
118             has 'date_formats' => (
119             is => 'ro',
120             isa => HashRef,
121             init_arg => undef,
122             default => sub { {
123             'generic' => {
124             'short' => q{d/MM/yy GGGGG},
125             },
126             'gregorian' => {
127             'short' => q{d/MM/y},
128             },
129             } },
130             );
131              
132             has 'time_formats' => (
133             is => 'ro',
134             isa => HashRef,
135             init_arg => undef,
136             default => sub { {
137             'generic' => {
138             },
139             'gregorian' => {
140             },
141             } },
142             );
143              
144             has 'datetime_formats' => (
145             is => 'ro',
146             isa => HashRef,
147             init_arg => undef,
148             default => sub { {
149             'generic' => {
150             },
151             'gregorian' => {
152             },
153             } },
154             );
155              
156             has 'datetime_formats_available_formats' => (
157             is => 'ro',
158             isa => HashRef,
159             init_arg => undef,
160             default => sub { {
161             'generic' => {
162             MEd => q{E d/M},
163             Md => q{d/M},
164             yyyyM => q{M/y GGGGG},
165             yyyyMEd => q{E d/M/y GGGGG},
166             yyyyMd => q{d/M/y GGGGG},
167             },
168             'gregorian' => {
169             MEd => q{E d/M},
170             Md => q{d/M},
171             yM => q{M/y},
172             yMEd => q{E d/M/y},
173             yMd => q{d/M/y},
174             },
175             } },
176             );
177              
178             has 'datetime_formats_append_item' => (
179             is => 'ro',
180             isa => HashRef,
181             init_arg => undef,
182             default => sub { {
183             } },
184             );
185              
186             has 'datetime_formats_interval' => (
187             is => 'ro',
188             isa => HashRef,
189             init_arg => undef,
190             default => sub { {
191             'generic' => {
192             MEd => {
193             M => q{E d/MM – E d/MM},
194             d => q{E d/MM – E d/MM},
195             },
196             Md => {
197             M => q{d/MM – d/MM},
198             d => q{d/MM – d/MM},
199             },
200             yM => {
201             M => q{MM/y – MM/y G},
202             y => q{MM/y – MM/y G},
203             },
204             yMEd => {
205             M => q{E d/MM/y – E d/MM/y G},
206             d => q{E d/MM/y – E d/MM/y G},
207             y => q{E d/MM/y – E d/MM/y G},
208             },
209             yMd => {
210             M => q{d/MM/y – d/MM/y G},
211             d => q{d/MM/y – d/MM/y G},
212             y => q{d/MM/y – d/MM/y G},
213             },
214             },
215             'gregorian' => {
216             MEd => {
217             M => q{E d/MM – E d/MM},
218             d => q{E d/MM – E d/MM},
219             },
220             Md => {
221             M => q{d/MM – d/MM},
222             d => q{d/MM – d/MM},
223             },
224             yM => {
225             M => q{MM/y – MM/y},
226             y => q{MM/y – MM/y},
227             },
228             yMEd => {
229             M => q{E d/MM/y – E d/MM/y},
230             d => q{E d/MM/y – E d/MM/y},
231             y => q{E d/MM/y – E d/MM/y},
232             },
233             yMd => {
234             M => q{d/MM/y – d/MM/y},
235             d => q{d/MM/y – d/MM/y},
236             y => q{d/MM/y – d/MM/y},
237             },
238             },
239             } },
240             );
241              
242 1     1   1291 no Moo;
  1         2  
  1         5  
243              
244             1;
245              
246             # vim: tabstop=4