Hi,
I think I've got the correct pattern for parsing a date below, but I get
an error as shown below as well. Can someone tell me if I have an error
in what I'm doing?
Thanks,
Matt
[code]
use DateTime;
use DateTime::Format::Strptime;
my $dt = DateTime::Format::Strptime
->new(
pattern => '%d%b%y',
locale => 'en_US',
time_zone => 'America/Chicago',
on_error => 'croak',
)
->parse_datetime( '01MAY10' );
[/code]
[stderr]
There is no use providing a month name (MAY1) without providing a year.
at c:\temp\dt.pl line 4
[/stderr]