ANNOUNCE: DateTime::Format::CLDR 1.00

[email protected] (Maros Kollar)
Newsgroups perl.datetime
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.