Hi,
i have just released the first version of the DateTime::Format::CLDR
module. It can parse datetime strings specified by CLDR patterns.
Since DateTime::Local returns CLDR patterns ( starting from version 0.40
) for date and time format descriptions, this module can be used to
parse localised datetime strings without having to specify a pattern.
$cldr = DateTime::Format::CLDR->new( locale => 'de_AT' );
# Pattern will be medium date format from DateTime::Locale::de_AT
(date_format_medium)
$cldr->pattern('dd.MM.yyyy');
# You still can provide a custom pattern
my $dt = $cldr->parse_datetime('15.07.2008');
# Parse dt
$cldr->format_datetime($dt);
# Just a shortcut for $dt->format_cldr( $format )
Cheers
Maros