=head1
Locale::CLDR::Locales::En::Any::Sg - Package for language English
=cut
# This file auto generated from Data\common\main\en_SG.xml
# on Sat 6 Feb 10:36:38 am GMT
use version;
our $VERSION = version->declare('v0.28.3');
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 'currencies' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'SGD' => {
symbol => '$',
},
} },
);
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 'generic') {
if($day_period_type eq 'selection') {
return 'evening1' if $time >= 1800
&& $time < 2100;
return 'afternoon1' if $time >= 1200
&& $time < 1800;
return 'night1' if $time >= 2100
&& $time < 2400;
return 'morning1' if $time >= 600
&& $time < 1200;
}
if($day_period_type eq 'default') {
return 'morning1' if $time >= 600
&& $time < 1200;
return 'night1' if $time >= 2100
&& $time < 2400;
return 'midnight' if $time == 0;
return 'noon' if $time == 1200;
return 'afternoon1' if $time > 1200
&& $time < 1800;
return 'evening1' if $time >= 1800
&& $time < 2100;
}
last SWITCH;
}
if ($_ eq 'gregorian') {
if($day_period_type eq 'selection') {
return 'evening1' if $time >= 1800
&& $time < 2100;
return 'afternoon1' if $time >= 1200
&& $time < 1800;
return 'night1' if $time >= 2100
&& $time < 2400;
return 'morning1' if $time >= 600
&& $time < 1200;
}
if($day_period_type eq 'default') {
return 'morning1' if $time >= 600
&& $time < 1200;
return 'night1' if $time >= 2100
&& $time < 2400;
return 'midnight' if $time == 0;
return 'noon' if $time == 1200;
return 'afternoon1' if $time > 1200
&& $time < 1800;
return 'evening1' if $time >= 1800
&& $time < 2100;
}
last SWITCH;
}
}
} },
);
has 'eras' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'generic' => {
},
'gregorian' => {
},
} },
);
has 'date_formats' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'generic' => {
'short' => q{d/M/yy GGGGG},
},
'gregorian' => {
'short' => q{d/M/yy},
},
} },
);
has 'time_formats' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'generic' => {
},
'gregorian' => {
},
} },
);
has 'datetime_formats' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'generic' => {
},
'gregorian' => {
},
} },
);
has 'datetime_formats_available_formats' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'generic' => {
yyyyMEd => q{E, d/M/y GGGGG},
},
} },
);
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 { {
'gregorian' => {
MEd => {
M => q{E, d/M – E, d/M},
d => q{E, d/M – E, d/M},
},
MMMEd => {
M => q{E, d MMM – E, d MMM},
d => q{E, d MMM – E, d MMM},
},
Md => {
M => q{d/M – d/M},
d => q{d/M – d/M},
},
yMEd => {
M => q{E, d/M/y – E, d/M/y},
d => q{E, d/M/y – E, d/M/y},
y => q{E, d/M/y – E, d/M/y},
},
yMMMEd => {
d => q{E, d MMM – E, d MMM y},
},
yMd => {
M => q{d/M/y – d/M/y},
d => q{d/M/y – d/M/y},
y => q{d/M/y – d/M/y},
},
},
'generic' => {
MEd => {
M => q{E, d/M – E, d/M},
d => q{E, d/M – E, d/M},
},
MMMEd => {
M => q{E, d MMM – E, d MMM},
d => q{E, d MMM – E, d MMM},
},
Md => {
M => q{d/M – d/M},
d => q{d/M – d/M},
},
yMEd => {
M => q{E, d/M/y – E, d/M/y G},
d => q{E, d/M/y – E, d/M/y G},
y => q{E, d/M/y – E, d/M/y G},
},
yMMMEd => {
d => q{E, d MMM – E, d MMM y G},
},
yMd => {
M => q{d/M/y – d/M/y G},
d => q{d/M/y – d/M/y G},
y => q{d/M/y – d/M/y G},
},
},
} },
);
has 'time_zone_names' => (
is => 'ro',
isa => 'HashRef',
init_arg => undef,
default => sub { {
'Malaysia' => {
short => {
'standard' => q(MYT),
},
},
'Singapore' => {
short => {
'standard' => q(SGT),
},
},
} }
);
no Moose;
__PACKAGE__->meta->make_immutable;
1;
# vim: tabstop=4