Hi Steven,
DateTime::Format::Natural does not handle the format yyyy-mm-dd well at
all.
perl -MDateTime::Format::Natural -le '$parser =
DateTime::Format::Natural->new(); print $parser->parse_datetime("2007-
01-01")'
Use of uninitialized value in numeric gt (>) at /opt/local/lib/perl5/
site_perl/5.8.8/DateTime/Format/Natural.pm line 100.
Use of uninitialized value in length at /opt/local/lib/perl5/site_perl/
5.8.8/DateTime/Format/Natural.pm line 103.
The 'year' parameter (undef) to DateTime::set was an 'undef', which is
not one of the allowed types: scalar
at /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/DateTime.pm line
1560
DateTime::set('undef', 'year', 'undef') called at /opt/local/
lib/perl5/site_perl/5.8.8/darwin-2level/DateTime.pm line 1574
DateTime::set_year('DateTime=HASH(0x180f840)', 'undef') called
at /opt/local/lib/perl5/site_perl/5.8.8/DateTime/Format/Natural.pm line
105
DateTime::Format::Natural::parse_datetime('DateTime::Format::Natural=HASH(0x1800568)',
'2007-01-01') called at -e line 1
Would be great if you could fix!
Thanks :)
Shawn