DateTime-Locale-FromCLDR
view release on metacpan or search on metacpan
t/01.locale.t view on Meta::CPAN
#!perl
BEGIN
{
use strict;
use warnings;
use lib './lib';
use open ':std' => ':utf8';
use vars qw( $DEBUG );
use utf8;
use version;
use Test::More;
use DBD::SQLite;
if( version->parse( $DBD::SQLite::sqlite_version ) < version->parse( '3.6.19' ) )
{
plan skip_all => 'SQLite driver version 3.6.19 or higher is required. You have version ' . $DBD::SQLite::sqlite_version;
}
our $DEBUG = exists( $ENV{AUTHOR_TESTING} ) ? $ENV{AUTHOR_TESTING} : 0;
};
BEGIN
{
use_ok( 'DateTime::Locale::FromCLDR' ) || BAIL_OUT( 'Unable to load DateTime::Locale::FromCLDR' );
};
use strict;
use warnings;
use utf8;
my $locale = DateTime::Locale::FromCLDR->new( 'en' );
isa_ok( $locale, 'DateTime::Locale::FromCLDR' );
# To generate this list:
# perl -lnE '/^sub (?!new|[A-Z]|_)/ and say "can_ok( \$locale, \''", [split(/\s+/, $_)]->[1], "\'' );"' ./lib/DateTime/Locale/FromCLDR.pm
can_ok( $locale, 'am_pm_abbreviated' );
can_ok( $locale, 'am_pm_format_abbreviated' );
can_ok( $locale, 'am_pm_format_narrow' );
can_ok( $locale, 'am_pm_format_wide' );
can_ok( $locale, 'am_pm_standalone_abbreviated' );
can_ok( $locale, 'am_pm_standalone_narrow' );
can_ok( $locale, 'am_pm_standalone_wide' );
can_ok( $locale, 'as_string' );
can_ok( $locale, 'available_formats' );
can_ok( $locale, 'available_format_patterns' );
can_ok( $locale, 'calendar' );
can_ok( $locale, 'code' );
can_ok( $locale, 'date_at_time_format_full' );
can_ok( $locale, 'date_at_time_format_long' );
can_ok( $locale, 'date_at_time_format_medium' );
can_ok( $locale, 'date_at_time_format_short' );
can_ok( $locale, 'date_format_default' );
can_ok( $locale, 'date_format_full' );
can_ok( $locale, 'date_format_long' );
can_ok( $locale, 'date_format_medium' );
can_ok( $locale, 'date_format_short' );
can_ok( $locale, 'date_formats' );
can_ok( $locale, 'datetime_format' );
can_ok( $locale, 'datetime_format_default' );
can_ok( $locale, 'datetime_format_full' );
can_ok( $locale, 'datetime_format_long' );
can_ok( $locale, 'datetime_format_medium' );
can_ok( $locale, 'datetime_format_short' );
can_ok( $locale, 'day_format_abbreviated' );
can_ok( $locale, 'day_format_narrow' );
can_ok( $locale, 'day_format_short' );
can_ok( $locale, 'day_format_wide' );
can_ok( $locale, 'day_period_format_abbreviated' );
can_ok( $locale, 'day_period_format_narrow' );
can_ok( $locale, 'day_period_format_wide' );
can_ok( $locale, 'day_period_stand_alone_abbreviated' );
can_ok( $locale, 'day_period_stand_alone_narrow' );
can_ok( $locale, 'day_period_stand_alone_wide' );
can_ok( $locale, 'day_periods' );
can_ok( $locale, 'day_stand_alone_abbreviated' );
can_ok( $locale, 'day_stand_alone_narrow' );
can_ok( $locale, 'day_stand_alone_short' );
can_ok( $locale, 'day_stand_alone_wide' );
can_ok( $locale, 'default_date_format_length' );
can_ok( $locale, 'default_time_format_length' );
can_ok( $locale, 'era_abbreviated' );
can_ok( $locale, 'era_narrow' );
can_ok( $locale, 'era_wide' );
can_ok( $locale, 'error' );
can_ok( $locale, 'fatal' );
can_ok( $locale, 'first_day_of_week' );
can_ok( $locale, 'format_for' );
can_ok( $locale, 'format_gmt' );
can_ok( $locale, 'format_timezone_location' );
can_ok( $locale, 'format_timezone_non_location' );
can_ok( $locale, 'has_dst' );
can_ok( $locale, 'interval_format' );
can_ok( $locale, 'interval_formats' );
can_ok( $locale, 'interval_greatest_diff' );
can_ok( $locale, 'is_dst' );
can_ok( $locale, 'is_ltr' );
can_ok( $locale, 'is_rtl' );
can_ok( $locale, 'language' );
can_ok( $locale, 'language_code' );
can_ok( $locale, 'locale' );
can_ok( $locale, 'locale_number_system' );
can_ok( $locale, 'metazone_daylight_long' );
can_ok( $locale, 'metazone_daylight_short' );
can_ok( $locale, 'metazone_generic_long' );
can_ok( $locale, 'metazone_generic_short' );
can_ok( $locale, 'metazone_standard_long' );
t/01.locale.t view on Meta::CPAN
am_pm_format_wide => ["AM", "PM"],
am_pm_standalone_abbreviated => ["AM", "PM"],
am_pm_standalone_narrow => ["AM", "PM"],
am_pm_standalone_wide => ["AM", "PM"],
available_formats => ["Bh", "Bhm", "Bhms", "d", "E", "EBh", "EBhm", "EBhms", "Ed", "Eh", "Ehm", "EHm", "Ehms", "EHms", "Gy", "GyM", "GyMd", "GyMEd", "GyMMM", "GyMMMd", "GyMMMEd", "h", "H", "hm", "Hm", "hms", "Hms", "hmsv", "Hmsv", "hmv", "Hmv...
available_format_patterns => {
Bh => "h B",
Bhm => "h:mm B",
Bhms => "h:mm:ss B",
d => "d",
E => "ccc",
EBh => "E h B",
EBhm => "E h:mm B",
EBhms => "E h:mm:ss B",
Ed => "d E",
Eh => "E hâ¯a",
Ehm => "E h:mmâ¯a",
EHm => "E HH:mm",
EHms => "E HH:mm:ss",
Ehms => "E h:mm:ssâ¯a",
Gy => "y G",
GyM => "M/y G",
GyMd => "M/d/y G",
GyMEd => "E, M/d/y G",
GyMMM => "MMM y G",
GyMMMd => "MMM d, y G",
GyMMMEd => "E, MMM d, y G",
h => "hâ¯a",
H => "HH",
hm => "h:mmâ¯a",
Hm => "HH:mm",
hms => "h:mm:ssâ¯a",
Hms => "HH:mm:ss",
hmsv => "h:mm:ssâ¯a v",
Hmsv => "HH:mm:ss v",
hmv => "h:mmâ¯a v",
Hmv => "HH:mm v",
Hv => "HH v",
hv => "hâ¯a v",
M => "L",
Md => "M/d",
MEd => "E, M/d",
MMM => "LLL",
MMMd => "MMM d",
MMMEd => "E, MMM d",
MMMMd => "MMMM d",
MMMMW => "'week' W 'of' MMMM",
ms => "mm:ss",
y => "y",
yM => "M/y",
yMd => "M/d/y",
yMEd => "E, M/d/y",
yMMM => "MMM y",
yMMMd => "MMM d, y",
yMMMEd => "E, MMM d, y",
yMMMM => "MMMM y",
yQQQ => "QQQ y",
yQQQQ => "QQQQ y",
yw => "'week' w 'of' Y",
},
calendar => q{gregorian},
code => q{en},
date_at_time_format_full => q{EEEE, MMMM d, y 'at' h:mm:ssâ¯a zzzz},
date_at_time_format_long => q{MMMM d, y 'at' h:mm:ssâ¯a z},
date_at_time_format_medium => q{MMM d, y, h:mm:ssâ¯a},
date_at_time_format_short => q{M/d/yy, h:mmâ¯a},
date_format_default => q{MMM d, y},
date_format_full => q{EEEE, MMMM d, y},
date_format_long => q{MMMM d, y},
date_format_medium => q{MMM d, y},
date_format_short => q{M/d/yy},
date_formats => {
full => "EEEE, MMMM d, y",
long => "MMMM d, y",
medium => "MMM d, y",
short => "M/d/yy",
},
datetime_format => q{MMM d, y, h:mm:ssâ¯a},
datetime_format_default => q{MMM d, y, h:mm:ssâ¯a},
datetime_format_full => q{EEEE, MMMM d, y, h:mm:ssâ¯a zzzz},
datetime_format_long => q{MMMM d, y, h:mm:ssâ¯a z},
datetime_format_medium => q{MMM d, y, h:mm:ssâ¯a},
datetime_format_short => q{M/d/yy, h:mmâ¯a},
day_format_abbreviated => ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
day_format_narrow => ["M", "T", "W", "T", "F", "S", "S"],
day_format_short => ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
day_format_wide => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
day_periods => {
afternoon1 => [qw( 12:00 18:00 )],
evening1 => [qw( 18:00 21:00 )],
midnight => [qw( 00:00 00:00 )],
morning1 => [qw( 00:00 12:00 )],
night1 => [qw( 21:00 24:00 )],
noon => [qw( 12:00 12:00 )],
},
day_stand_alone_abbreviated => ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
day_stand_alone_narrow => ["M", "T", "W", "T", "F", "S", "S"],
day_stand_alone_short => ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
day_stand_alone_wide => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
default_date_format_length => q{medium},
default_time_format_length => q{medium},
era_abbreviated => ["BC", "AD"],
era_narrow => ["B", "A"],
era_wide => ["Before Christ", "Anno Domini"],
first_day_of_week => q{7},
interval_formats => {
Bh => [qw( B h )],
Bhm => [qw( B h m )],
d => ["d"],
default => ["default"],
Gy => [qw( G y )],
GyM => [qw( G M y )],
GyMd => [qw( d G M y )],
GyMEd => [qw( d G M y )],
GyMMM => [qw( G M y )],
GyMMMd => [qw( d G M y )],
GyMMMEd => [qw( d G M y )],
H => ["H"],
h => [qw( a h )],
hm => [qw( a h m )],
Hm => [qw( H m )],
t/01.locale.t view on Meta::CPAN
yMEd => [qw( d M y )],
yMMM => [qw( M y )],
yMMMd => [qw( d M y )],
yMMMEd => [qw( d M y )],
yMMMM => [qw( M y )],
},
is_ltr => q{0},
is_rtl => q{1},
language => q{English},
language_code => q{en},
locale => q{en},
locale_number_system => ["latn", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]],
month_format_abbreviated => ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
month_format_narrow => ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
month_format_wide => ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
month_stand_alone_abbreviated => ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
month_stand_alone_narrow => ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
month_stand_alone_wide => ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
name => q{English},
native_language => q{English},
native_name => q{English},
native_script => undef,
native_territory => undef,
native_variant => undef,
native_variants => [],
number_symbols => {
approximately => "~",
decimal => ".",
exponential => "E",
group => ",",
infinity => "â",
list => ";",
minus => "-",
nan => "NaN",
per_mille => "â°",
percent => "%",
plus => "+",
superscript => "Ã",
time_separator => ":",
},
number_system => q{latn},
number_systems => {
finance => undef,
native => "latn",
number_system => "latn",
traditional => undef,
},
number_system_digits => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
prefers_24_hour_time => q{0},
quarter_format_abbreviated => ["Q1", "Q2", "Q3", "Q4"],
quarter_format_narrow => ["1", "2", "3", "4"],
quarter_format_wide => ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
quarter_stand_alone_abbreviated => ["Q1", "Q2", "Q3", "Q4"],
quarter_stand_alone_narrow => ["1", "2", "3", "4"],
quarter_stand_alone_wide => ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
script => undef,
script_code => undef,
territory => undef,
territory_code => undef,
territory_info => {
calendars => undef,
contains => undef,
currency => "USD",
first_day => 7,
gdp => 24660000000000,
languages => [qw(
en es zh-Hant fr de fil it vi ko ru mww nv yi pdc hnj
haw frc chr esu dak cho lkt ik mus oka io cic cad jbo
osa
)],
literacy_percent => 99,
min_days => 1,
parent => "021",
population => 341963000,
status => "regular",
territory => "US",
territory_id => 297,
weekend => undef,
},
time_format_allowed => ["h", "hb", "H", "hB"],
time_format_default => q{h:mm:ssâ¯a},
time_format_full => q{h:mm:ssâ¯a zzzz},
time_format_long => q{h:mm:ssâ¯a z},
time_format_medium => q{h:mm:ssâ¯a},
time_format_preferred => q{h},
time_format_short => q{h:mmâ¯a},
time_formats => {
full => "h:mm:ssâ¯a zzzz",
long => "h:mm:ssâ¯a z",
medium => "h:mm:ssâ¯a",
short => "h:mmâ¯a",
},
timezone_format_gmt => q{GMT{0}},
timezone_format_gmt_zero => q{GMT},
timezone_format_hour => ["+HH:mm", "-HH:mm"],
timezone_format_region => q{{0} Time},
timezone_format_region_daylight => q{{0} Daylight Time},
timezone_format_region_standard => q{{0} Standard Time},
variant => undef,
variant_code => undef,
variants => [],
},
{
am_pm_abbreviated => ["am", "pm"],
am_pm_format_abbreviated => ["am", "pm"],
am_pm_format_narrow => ["am", "pm"],
am_pm_format_wide => ["am", "pm"],
am_pm_standalone_abbreviated => ["am", "pm"],
am_pm_standalone_narrow => ["am", "pm"],
am_pm_standalone_wide => ["am", "pm"],
available_formats => ["GyMEd", "GyMMMEEEEd", "MEd", "MMMEd", "MMMEEEEd", "MMMMEEEEd", "yMMMEEEEd", "yMMMMEEEEd"],
available_format_patterns => {
GyMEd => "E, d/M/y G",
GyMMMEEEEd => "EEEE, d MMM y G",
MEd => "E dd/MM",
MMMEd => "E d MMM",
MMMEEEEd => "EEEE d MMM",
MMMMEEEEd => "EEEE d MMMM",
yMMMEEEEd => "EEEE, d MMM y",
yMMMMEEEEd => "EEEE, d MMMM y",
},
calendar => q{gregorian},
code => q{en-GB},
date_at_time_format_full => q{EEEE, d MMMM y 'at' HH:mm:ss zzzz},
date_at_time_format_long => q{d MMMM y 'at' HH:mm:ss z},
date_at_time_format_medium => q{d MMM y, HH:mm:ss},
date_at_time_format_short => q{dd/MM/y, HH:mm},
date_format_default => q{d MMM y},
date_format_full => q{EEEE, d MMMM y},
date_format_long => q{d MMMM y},
date_format_medium => q{d MMM y},
date_format_short => q{dd/MM/y},
date_formats => {
full => "EEEE, d MMMM y",
long => "d MMMM y",
medium => "d MMM y",
short => "dd/MM/y",
},
datetime_format => q{d MMM y, HH:mm:ss},
datetime_format_default => q{d MMM y, HH:mm:ss},
datetime_format_full => q{EEEE, d MMMM y, HH:mm:ss zzzz},
datetime_format_long => q{d MMMM y, HH:mm:ss z},
datetime_format_medium => q{d MMM y, HH:mm:ss},
datetime_format_short => q{dd/MM/y, HH:mm},
day_format_abbreviated => ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
day_format_narrow => ["M", "T", "W", "T", "F", "S", "S"],
day_format_short => ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
day_format_wide => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
day_periods => {
afternoon1 => [qw( 12:00 18:00 )],
evening1 => [qw( 18:00 21:00 )],
midnight => [qw( 00:00 00:00 )],
morning1 => [qw( 00:00 12:00 )],
night1 => [qw( 21:00 24:00 )],
noon => [qw( 12:00 12:00 )],
},
day_stand_alone_abbreviated => ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
day_stand_alone_narrow => ["M", "T", "W", "T", "F", "S", "S"],
day_stand_alone_short => ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
day_stand_alone_wide => ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
default_date_format_length => q{medium},
default_time_format_length => q{medium},
era_abbreviated => ["BC", "AD"],
era_narrow => ["B", "A"],
era_wide => ["Before Christ", "Anno Domini"],
first_day_of_week => q{1},
interval_formats => {
d => ["d"],
GyMMMEEEEd => [qw( d G M y )],
M => ["M"],
MMMd => ["d"],
MMMEd => ["d"],
y => ["y"],
yMMMd => ["d"],
yMMMEd => ["d"],
yMMMEEEEd => [qw( d M y )],
yMMMMEEEEd => [qw( d M y )],
},
is_ltr => q{0},
is_rtl => q{1},
language => q{English},
language_code => q{en},
locale => q{en-GB},
locale_number_system => ["latn", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]],
month_format_abbreviated => ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
month_format_narrow => ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
month_format_wide => ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
month_stand_alone_abbreviated => ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
month_stand_alone_narrow => ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
month_stand_alone_wide => ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
name => q{British English},
native_language => q{English},
native_name => q{British English},
native_script => undef,
native_territory => q{United Kingdom},
native_variant => undef,
native_variants => [],
number_symbols => {
approximately => "~",
decimal => ".",
exponential => "E",
group => ",",
infinity => "â",
list => ";",
minus => "-",
nan => "NaN",
per_mille => "â°",
percent => "%",
plus => "+",
superscript => "Ã",
time_separator => ":",
},
number_system => q{latn},
number_systems => {
finance => undef,
native => "latn",
number_system => "latn",
traditional => undef,
},
number_system_digits => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
prefers_24_hour_time => q{1},
quarter_format_abbreviated => ["Q1", "Q2", "Q3", "Q4"],
quarter_format_narrow => ["1", "2", "3", "4"],
quarter_format_wide => ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
quarter_stand_alone_abbreviated => ["Q1", "Q2", "Q3", "Q4"],
quarter_stand_alone_narrow => ["1", "2", "3", "4"],
quarter_stand_alone_wide => ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
script => undef,
script_code => undef,
territory => q{United Kingdom},
territory_code => q{GB},
territory_info => {
calendars => undef,
contains => undef,
currency => "GBP",
first_day => 1,
gdp => 3700000000000,
languages => [qw(
en fr de es pl pa ur ta gu sco cy ro bn ar zh-Hant it lt
pt so tr ga gd kw pi en-Shaw
)],
literacy_percent => 99,
min_days => 4,
parent => 154,
population => 68459100,
status => "regular",
territory => "GB",
territory_id => 121,
weekend => undef,
},
time_format_allowed => ["H", "h", "hb", "hB"],
time_format_default => q{HH:mm:ss},
time_format_full => q{HH:mm:ss zzzz},
time_format_long => q{HH:mm:ss z},
time_format_medium => q{HH:mm:ss},
time_format_preferred => q{H},
time_format_short => q{HH:mm},
time_formats => {
full => "HH:mm:ss zzzz",
long => "HH:mm:ss z",
medium => "HH:mm:ss",
short => "HH:mm",
},
timezone_format_gmt => q{GMT{0}},
timezone_format_gmt_zero => q{GMT},
timezone_format_hour => ["+HH:mm", "-HH:mm"],
timezone_format_region => q{{0} Time},
timezone_format_region_daylight => q{{0} Daylight Time},
timezone_format_region_standard => q{{0} Standard Time},
variant => undef,
variant_code => undef,
variants => [],
},
{
am_pm_abbreviated => ["a.â¯m.", "p.â¯m."],
am_pm_format_abbreviated => ["a.â¯m.", "p.â¯m."],
am_pm_format_narrow => ["a.â¯m.", "p.â¯m."],
am_pm_format_wide => ["a. m.", "p. m."],
am_pm_standalone_abbreviated => ["a. m.", "p. m."],
am_pm_standalone_narrow => ["a. m.", "p. m."],
am_pm_standalone_wide => ["a. m.", "p. m."],
available_formats => ["Ed", "Ehm", "EHm", "Ehms", "EHms", "Gy", "GyM", "GyMd", "GyMEd", "GyMMM", "GyMMMd", "GyMMMEd", "GyMMMM", "GyMMMMd", "GyMMMMEd", "H", "hm", "Hm", "hms", "Hms", "hmsv", "Hmsv", "hmsvvvv", "Hmsvvvv", "hmv", "Hmv", "Hv", "M...
available_format_patterns => {
Ed => "E d",
EHm => "E, H:mm",
Ehm => "E, h:mmâ¯a",
Ehms => "E, h:mm:ssâ¯a",
EHms => "E, H:mm:ss",
Gy => "y G",
GyM => "M/y G",
GyMd => "d/M/y G",
GyMEd => "E, d/M/y G",
GyMMM => "MMM y G",
GyMMMd => "d MMM y G",
GyMMMEd => "E, d MMM y G",
GyMMMM => "MMMM 'de' y G",
GyMMMMd => "d 'de' MMMM 'de' y G",
GyMMMMEd => "E, d 'de' MMMM 'de' y G",
H => "H",
Hm => "H:mm",
hm => "h:mmâ¯a",
Hms => "H:mm:ss",
hms => "h:mm:ssâ¯a",
Hmsv => "H:mm:ss v",
hmsv => "h:mm:ssâ¯a v",
Hmsvvvv => "H:mm:ss (vvvv)",
hmsvvvv => "h:mm:ssâ¯a (vvvv)",
Hmv => "H:mm v",
hmv => "h:mmâ¯a v",
Hv => "H v",
Md => "d/M",
MEd => "E, d/M",
MMd => "d/M",
MMdd => "d/M",
MMMd => "d MMM",
MMMEd => "E, d MMM",
MMMMd => "d 'de' MMMM",
MMMMEd => "E, d 'de' MMMM",
MMMMW => "'semana' W 'de' MMMM",
yM => "M/y",
yMd => "d/M/y",
yMEd => "EEE, d/M/y",
yMM => "M/y",
yMMM => "MMM y",
yMMMd => "d MMM y",
yMMMEd => "EEE, d MMM y",
yMMMM => "MMMM 'de' y",
yMMMMd => "d 'de' MMMM 'de' y",
yMMMMEd => "EEE, d 'de' MMMM 'de' y",
yQQQ => "QQQ y",
yQQQQ => "QQQQ 'de' y",
yw => "'semana' w 'de' Y",
},
calendar => q{gregorian},
code => q{es-005-valencia},
date_at_time_format_full => q{EEEE, d 'de' MMMM 'de' y H:mm:ss (zzzz)},
date_at_time_format_long => q{d 'de' MMMM 'de' y 'a' 'las' H:mm:ss z},
date_at_time_format_medium => q{d MMM y H:mm:ss},
date_at_time_format_short => q{d/M/yy H:mm},
date_format_default => q{d MMM y},
date_format_full => q{EEEE, d 'de' MMMM 'de' y},
date_format_long => q{d 'de' MMMM 'de' y},
date_format_medium => q{d MMM y},
date_format_short => q{d/M/yy},
date_formats => {
full => "EEEE, d 'de' MMMM 'de' y",
long => "d 'de' MMMM 'de' y",
medium => "d MMM y",
short => "d/M/yy",
},
datetime_format => q{d MMM y, H:mm:ss},
datetime_format_default => q{d MMM y, H:mm:ss},
datetime_format_full => q{EEEE, d 'de' MMMM 'de' y, H:mm:ss (zzzz)},
datetime_format_long => q{d 'de' MMMM 'de' y, H:mm:ss z},
datetime_format_medium => q{d MMM y, H:mm:ss},
datetime_format_short => q{d/M/yy, H:mm},
day_format_abbreviated => ["lun", "mar", "mié", "jue", "vie", "sáb", "dom"],
day_format_narrow => ["LU", "MA", "MI", "JU", "VI", "SA", "DO"],
day_format_short => ["LU", "MA", "MI", "JU", "VI", "SA", "DO"],
day_format_wide => ["lunes", "martes", "miércoles", "jueves", "viernes", "sábado", "domingo"],
day_periods => {
evening1 => [qw( 12:00 20:00 )],
morning1 => [qw( 00:00 06:00 )],
morning2 => [qw( 06:00 12:00 )],
night1 => [qw( 20:00 24:00 )],
noon => [qw( 12:00 12:00 )],
},
day_stand_alone_abbreviated => ["lun", "mar", "mié", "jue", "vie", "sáb", "dom"],
day_stand_alone_narrow => ["L", "M", "X", "J", "V", "S", "D"],
day_stand_alone_short => ["LU", "MA", "MI", "JU", "VI", "SA", "DO"],
day_stand_alone_wide => ["lunes", "martes", "miércoles", "jueves", "viernes", "sábado", "domingo"],
default_date_format_length => q{medium},
default_time_format_length => q{medium},
era_abbreviated => ["a. C.", "d. C."],
era_narrow => ["a. C.", "d. C."],
era_wide => ["antes de Cristo", "después de Cristo"],
first_day_of_week => q{1},
interval_formats => {
Gy => [qw( G y )],
GyM => [qw( G M y )],
GyMd => [qw( d G M y )],
GyMEd => [qw( d G M y )],
GyMMM => [qw( G M y )],
GyMMMd => [qw( d G M y )],
GyMMMEd => [qw( d G M y )],
H => ["H"],
Hm => [qw( H m )],
hm => [qw( a h m )],
hmv => [qw( a h m )],
Hmv => [qw( H m )],
Hv => ["H"],
M => ["M"],
Md => [qw( d M )],
MEd => [qw( d M )],
t/01.locale.t view on Meta::CPAN
yMMMd => [qw( d M y )],
yMMMEd => [qw( d M y )],
yMMMM => [qw( M y )],
yMMMMd => [qw( d M y )],
yMMMMEd => [qw( d M y )],
},
is_ltr => q{0},
is_rtl => q{1},
language => q{Spanish},
language_code => q{es},
locale => q{es-005-valencia},
locale_number_system => ["latn", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]],
month_format_abbreviated => ["ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sept", "oct", "nov", "dic"],
month_format_narrow => ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"],
month_format_wide => ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"],
month_stand_alone_abbreviated => ["M01", "M02", "M03", "M04", "M05", "M06", "M07", "M08", "M09", "M10", "M11", "M12"],
month_stand_alone_narrow => ["E", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
month_stand_alone_wide => ["M01", "M02", "M03", "M04", "M05", "M06", "M07", "M08", "M09", "M10", "M11", "M12"],
name => q{Spanish},
native_language => q{español},
native_name => q{español},
native_script => undef,
native_territory => q{Sudamérica},
native_variant => q{Valenciano},
native_variants => ["Valenciano"],
number_symbols => {
approximately => "~",
decimal => ",",
exponential => "E",
group => ".",
infinity => "â",
list => ";",
minus => "-",
nan => "NaN",
per_mille => "â°",
percent => "%",
plus => "+",
superscript => "Ã",
time_separator => ":",
},
number_system => q{latn},
number_systems => {
finance => undef,
native => "latn",
number_system => "latn",
traditional => undef,
},
number_system_digits => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
prefers_24_hour_time => q{1},
quarter_format_abbreviated => ["T1", "T2", "T3", "T4"],
quarter_format_narrow => ["1.er trimestre", "2.º trimestre", "3.er trimestre", "4.º trimestre"],
quarter_format_wide => ["1.er trimestre", "2.º trimestre", "3.er trimestre", "4.º trimestre"],
quarter_stand_alone_abbreviated => ["T1", "T2", "T3", "T4"],
quarter_stand_alone_narrow => ["T1", "T2", "T3", "T4"],
quarter_stand_alone_wide => ["1.er trimestre", "2.º trimestre", "3.er trimestre", "4.º trimestre"],
script => undef,
script_code => undef,
territory => q{South America},
territory_code => q{005},
territory_info => {
calendars => undef,
contains => undef,
currency => "EUR",
first_day => 1,
gdp => 2242000000000,
languages => [qw( es en ca gl eu ast ext an oc )],
literacy_percent => 97.7,
min_days => 4,
parent => "039",
population => 47280400,
status => "regular",
territory => "ES",
territory_id => 109,
weekend => undef,
},
time_format_allowed => ["H", "h", "hB"],
time_format_default => q{H:mm:ss},
time_format_full => q{H:mm:ss (zzzz)},
time_format_long => q{H:mm:ss z},
time_format_medium => q{H:mm:ss},
time_format_preferred => q{H},
time_format_short => q{H:mm},
time_formats => {
full => "H:mm:ss (zzzz)",
long => "H:mm:ss z",
medium => "H:mm:ss",
short => "H:mm",
},
timezone_format_gmt => q{GMT{0}},
timezone_format_gmt_zero => q{GMT},
timezone_format_hour => ["+HH:mm", "-HH:mm"],
timezone_format_region => q{hora de {0}},
timezone_format_region_daylight => q{horario de verano de {0}},
timezone_format_region_standard => q{horario estándar de {0}},
variant => q{Valencian},
variant_code => q{valencia},
variants => ["valencia"],
},
{
am_pm_abbreviated => ["åå", "åå¾"],
am_pm_format_abbreviated => ["åå", "åå¾"],
am_pm_format_narrow => ["åå", "åå¾"],
am_pm_format_wide => ["åå", "åå¾"],
am_pm_standalone_abbreviated => ["åå", "åå¾"],
am_pm_standalone_narrow => ["åå", "åå¾"],
am_pm_standalone_wide => ["åå", "åå¾"],
available_formats => ["Bh", "Bhm", "Bhms", "d", "EBh", "EBhm", "EBhms", "Ed", "EEEEd", "Eh", "Ehm", "EHm", "Ehms", "EHms", "Gy", "GyM", "GyMd", "GyMEd", "GyMMM", "GyMMMd", "GyMMMEd", "GyMMMEEEEd", "h", "H", "hm", "Hm", "hms", "Hms", "hmsv", "...
available_format_patterns => {
Bh => "BKæ",
Bhm => "BK:mm",
Bhms => "BK:mm:ss",
d => "dæ¥",
EBh => "BKæ (E)",
EBhm => "BK:mm (E)",
EBhms => "BK:mm:ss (E)",
Ed => "dæ¥(E)",
EEEEd => "dæ¥EEEE",
Eh => "aKæ (E)",
Ehm => "aK:mm (E)",
EHm => "H:mm (E)",
EHms => "H:mm:ss (E)",
Ehms => "aK:mm:ss (E)",
Gy => "Gyå¹´",
GyM => "Gy/M",
GyMd => "Gy/M/d",
GyMEd => "Gy/M/d(E)",
GyMMM => "Gyå¹´Mæ",
GyMMMd => "Gyå¹´Mædæ¥",
GyMMMEd => "Gyå¹´Mædæ¥(E)",
GyMMMEEEEd => "Gyå¹´Mædæ¥EEEE",
h => "aKæ",
H => "Hæ",
hm => "aK:mm",
Hm => "H:mm",
hms => "aK:mm:ss",
Hms => "H:mm:ss",
hmsv => "aK:mm:ss v",
Hmsv => "H:mm:ss v",
hmv => "aK:mm v",
Hmv => "H:mm v",
Hv => "Hæ v",
hv => "aKæ v",
M => "Mæ",
Md => "M/d",
MEd => "M/d(E)",
MEEEEd => "M/dEEEE",
MMM => "Mæ",
MMMd => "Mædæ¥",
MMMEd => "Mædæ¥(E)",
MMMEEEEd => "Mædæ¥EEEE",
MMMMd => "Mædæ¥",
MMMMW => "Mæç¬¬Wé±",
y => "yå¹´",
yM => "y/M",
yMd => "y/M/d",
yMEd => "y/M/d(E)",
yMEEEEd => "y/M/dEEEE",
yMM => "y/MM",
yMMM => "yå¹´Mæ",
yMMMd => "yå¹´Mædæ¥",
yMMMEd => "yå¹´Mædæ¥(E)",
yMMMEEEEd => "yå¹´Mædæ¥EEEE",
yMMMM => "yå¹´Mæ",
yQQQ => "y/QQQ",
yQQQQ => "yå¹´QQQQ",
yw => "Y年第wé±",
},
calendar => q{gregorian},
code => q{ja-Latn-fonipa-hepburn-heploc},
date_at_time_format_full => q{yå¹´Mædæ¥EEEE Hæmmåssç§ zzzz},
date_at_time_format_long => q{yå¹´Mædæ¥ H:mm:ss z},
date_at_time_format_medium => q{y/MM/dd H:mm:ss},
date_at_time_format_short => q{y/MM/dd H:mm},
date_format_default => q{y/MM/dd},
date_format_full => q{yå¹´Mædæ¥EEEE},
date_format_long => q{yå¹´Mædæ¥},
date_format_medium => q{y/MM/dd},
date_format_short => q{y/MM/dd},
date_formats => {
full => "yå¹´Mædæ¥EEEE",
long => "yå¹´Mædæ¥",
medium => "y/MM/dd",
short => "y/MM/dd",
},
datetime_format => q{y/MM/dd H:mm:ss},
datetime_format_default => q{y/MM/dd H:mm:ss},
datetime_format_full => q{yå¹´Mædæ¥EEEE Hæmmåssç§ zzzz},
datetime_format_long => q{yå¹´Mædæ¥ H:mm:ss z},
datetime_format_medium => q{y/MM/dd H:mm:ss},
datetime_format_short => q{y/MM/dd H:mm},
day_format_abbreviated => ["æ", "ç«", "æ°´", "æ¨", "é", "å", "æ¥"],
day_format_narrow => ["æ", "ç«", "æ°´", "æ¨", "é", "å", "æ¥"],
day_format_short => ["æ", "ç«", "æ°´", "æ¨", "é", "å", "æ¥"],
day_format_wide => ["æææ¥", "ç«ææ¥", "æ°´ææ¥", "æ¨ææ¥", "éææ¥", "åææ¥", "æ¥ææ¥"],
day_periods => {
afternoon1 => [qw( 12:00 16:00 )],
evening1 => [qw( 16:00 19:00 )],
midnight => [qw( 00:00 00:00 )],
morning1 => [qw( 04:00 12:00 )],
night1 => [qw( 19:00 23:00 )],
night2 => [qw( 23:00 04:00 )],
noon => [qw( 12:00 12:00 )],
},
day_stand_alone_abbreviated => ["æ", "ç«", "æ°´", "æ¨", "é", "å", "æ¥"],
day_stand_alone_narrow => ["æ", "ç«", "æ°´", "æ¨", "é", "å", "æ¥"],
day_stand_alone_short => ["æ", "ç«", "æ°´", "æ¨", "é", "å", "æ¥"],
day_stand_alone_wide => ["æææ¥", "ç«ææ¥", "æ°´ææ¥", "æ¨ææ¥", "éææ¥", "åææ¥", "æ¥ææ¥"],
default_date_format_length => q{medium},
default_time_format_length => q{medium},
era_abbreviated => ["ç´å
å", "西æ¦"],
era_narrow => ["BC", "AD"],
era_wide => ["ç´å
å", "西æ¦"],
first_day_of_week => q{7},
interval_formats => {
Bh => [qw( B h )],
Bhm => [qw( B h m )],
d => ["d"],
default => ["default"],
Gy => [qw( G y )],
GyM => [qw( G M y )],
GyMd => [qw( d G M y )],
GyMEd => [qw( d G M y )],
GyMMM => [qw( G M y )],
GyMMMd => [qw( d G M y )],
GyMMMEd => [qw( d G M y )],
H => ["H"],
h => [qw( a h )],
hm => [qw( a h m )],
t/01.locale.t view on Meta::CPAN
yMEd => [qw( d M y )],
yMMM => [qw( M y )],
yMMMd => [qw( d M y )],
yMMMEd => [qw( d M y )],
yMMMM => [qw( M y )],
},
is_ltr => q{0},
is_rtl => q{1},
language => q{Japanese},
language_code => q{ja},
locale => q{ja-Latn-fonipa-hepburn-heploc},
locale_number_system => ["latn", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]],
month_format_abbreviated => ["1æ", "2æ", "3æ", "4æ", "5æ", "6æ", "7æ", "8æ", "9æ", "10æ", "11æ", "12æ"],
month_format_narrow => ["1æ", "2æ", "3æ", "4æ", "5æ", "6æ", "7æ", "8æ", "9æ", "10æ", "11æ", "12æ"],
month_format_wide => ["1æ", "2æ", "3æ", "4æ", "5æ", "6æ", "7æ", "8æ", "9æ", "10æ", "11æ", "12æ"],
month_stand_alone_abbreviated => ["M01", "M02", "M03", "M04", "M05", "M06", "M07", "M08", "M09", "M10", "M11", "M12"],
month_stand_alone_narrow => ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
month_stand_alone_wide => ["M01", "M02", "M03", "M04", "M05", "M06", "M07", "M08", "M09", "M10", "M11", "M12"],
name => q{Japanese},
native_language => q{æ¥æ¬èª},
native_name => q{æ¥æ¬èª},
native_script => q{ã©ãã³æå},
native_territory => undef,
native_variant => q{å½éé³å£°è¨å·},
native_variants => ["å½éé³å£°è¨å·", "ããã³å¼ãã¼ãå", ""],
number_symbols => {
approximately => "ç´",
decimal => ".",
exponential => "E",
group => ",",
infinity => "â",
list => ";",
minus => "-",
nan => "NaN",
per_mille => "â°",
percent => "%",
plus => "+",
superscript => "Ã",
time_separator => ":",
},
number_system => q{latn},
number_systems => {
finance => "jpanfin",
native => undef,
number_system => undef,
traditional => "jpan",
},
number_system_digits => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
prefers_24_hour_time => q{1},
quarter_format_abbreviated => ["Q1", "Q2", "Q3", "Q4"],
quarter_format_narrow => ["第1ååæ", "第2ååæ", "第3ååæ", "第4ååæ"],
quarter_format_wide => ["第1ååæ", "第2ååæ", "第3ååæ", "第4ååæ"],
quarter_stand_alone_abbreviated => ["Q1", "Q2", "Q3", "Q4"],
quarter_stand_alone_narrow => ["Q1", "Q2", "Q3", "Q4"],
quarter_stand_alone_wide => ["第1ååæ", "第2ååæ", "第3ååæ", "第4ååæ"],
script => q{Latin},
script_code => q{Latn},
territory => undef,
territory_code => undef,
territory_info => {
calendars => [qw( gregorian japanese )],
contains => undef,
currency => "JPY",
first_day => 7,
gdp => 5761000000000,
languages => [qw( ja ryu ko )],
literacy_percent => 99,
min_days => undef,
parent => "030",
population => 123202000,
status => "regular",
territory => "JP",
territory_id => 159,
weekend => undef,
},
time_format_allowed => ["H", "K", "h"],
time_format_default => q{H:mm:ss},
time_format_full => q{Hæmmåssç§ zzzz},
time_format_long => q{H:mm:ss z},
time_format_medium => q{H:mm:ss},
time_format_preferred => q{H},
time_format_short => q{H:mm},
time_formats => {
full => "Hæmmåssç§ zzzz",
long => "H:mm:ss z",
medium => "H:mm:ss",
short => "H:mm",
},
timezone_format_gmt => q{GMT{0}},
timezone_format_gmt_zero => q{GMT},
timezone_format_hour => ["+HH:mm", "-HH:mm"],
timezone_format_region => q{{0}æé},
timezone_format_region_daylight => q{{0}夿é},
timezone_format_region_standard => q{{0}æ¨æºæ},
variant => q{},
variant_code => q{fonipa-hepburn-heploc},
variants => ["fonipa", "hepburn", "heploc"],
},
];
my $available_formats = {
en => {
Bh => "h B",
Bhm => "h:mm B",
Bhms => "h:mm:ss B",
d => "d",
E => "ccc",
EBh => "E h B",
EBhm => "E h:mm B",
EBhms => "E h:mm:ss B",
Ed => "d E",
Eh => "E hâ¯a",
EHm => "E HH:mm",
Ehm => "E h:mmâ¯a",
Ehms => "E h:mm:ssâ¯a",
EHms => "E HH:mm:ss",
Gy => "y G",
GyM => "M/y G",
GyMd => "M/d/y G",
GyMEd => "E, M/d/y G",
GyMMM => "MMM y G",
GyMMMd => "MMM d, y G",
( run in 0.588 second using v1.01-cache-2.11-cpan-ceb78f64989 )