my $locale_class = DateTime::Locale->load(DateTime->DefaultLocale);
59
59
60
if($locale_class->date_parts_order eq 'dmy')
60
my $short = $locale_class->date_format_short;
61
62
$short =~ tr{dmyDMY}{}cd;
63
$short =~ tr{dmyDMY}{dmydmy}s;
64
65
# date_parts_order() is deprecated in DateTime::Locale 0.44+
66
#if($locale_class->date_parts_order eq 'dmy')
67
if($short eq 'dmy')
61
68
{
62
69
return 1;
63
70
}
808
815
809
816
=head1 LICENSE
810
817
811
Copyright (c) 2004-2006 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
818
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.