=head1
Locale::CLDR::Locales::En::Any::Mg - Package for language English
=cut
# This file auto generated from Data\common\main\en_MG.xml
# on Sun 25 Oct 8:42:41 am GMT
use version;
our $VERSION = version->declare('v0.28.1');
use v5.10.1;
use mro 'c3';
use utf8;
use if $^V ge v5.12.0, feature => 'unicode_strings';
use Moose;
extends('Locale::CLDR::Locales::En::Any::001');
has 'curriencies' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'MGA' => {
symbol => 'Ar',
},
} },
);
has 'day_period_data' => (
traits => ['Code'],
is => 'ro',
isa => 'CodeRef',
init_arg => undef,
handles => { call => 'execute_method' },
default => sub { sub {
# Time in hhmm format
my ($self, $type, $time, $day_period_type) = @_;
$day_period_type //= 'default';
SWITCH:
for ($type) {
if ($_ eq 'gregorian') {
if($day_period_type eq 'default') {
return 'afternoon1' if $time > 1200
&& $time < 1800;
return 'evening1' if $time >= 1800
&& $time < 2100;
return 'night1' if $time >= 2100
&& $time < 2400;
return 'noon' if $time == 1200;
return 'morning1' if $time >= 600
&& $time < 1200;
return 'midnight' if $time == 0;
}
if($day_period_type eq 'selection') {
return 'evening1' if $time >= 1800
&& $time < 2100;
return 'night1' if $time >= 2100
&& $time < 2400;
return 'afternoon1' if $time >= 1200
&& $time < 1800;
return 'morning1' if $time >= 600
&& $time < 1200;
}
last SWITCH;
}
}
} },
);
has 'eras' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'gregorian' => {
},
} },
);
has 'date_formats' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'gregorian' => {
},
} },
);
has 'time_formats' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'gregorian' => {
'full' => q{HH:mm:ss zzzz},
'long' => q{HH:mm:ss z},
'medium' => q{HH:mm:ss},
'short' => q{HH:mm},
},
} },
);
has 'datetime_formats' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'gregorian' => {
},
} },
);
has 'datetime_formats_available_formats' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
} },
);
has 'datetime_formats_append_item' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
} },
);
has 'datetime_formats_interval' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
} },
);
has 'time_zone_names' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'Africa_Central' => {
short => {
'standard' => q(CAT),
},
},
'Africa_Eastern' => {
short => {
'standard' => q(EAT),
},
},
'Africa_Southern' => {
short => {
'standard' => q(SAST),
},
},
'Africa_Western' => {
short => {
'daylight' => q(WAST),
'generic' => q(WAT),
'standard' => q(WAT),
},
},
} }
);
no Moose;
__PACKAGE__->meta->make_immutable;
1;
# vim: tabstop=4