stsc / DateTime-Format-Natural

Parse informal natural language date/time strings
5 stars 5 forks source link

parse_datetime failure #4

Closed nigelhorne closed 5 years ago

nigelhorne commented 5 years ago

Sometimes I get this message from parse_datetime('16-Dec-2018')

Undefined subroutine &DateTime::Format::Natural::Compat::check_date called

I've checked your documentation and Google and can't find why that would occur.

stsc commented 5 years ago

Compat.pm imports check_date() from Date::Calc. Not sure why that should fail, though. What Date::Calc version were you using?

nigelhorne commented 5 years ago

I am using Date::Calc version 6.4.

stsc commented 5 years ago

Ran $parser->parse_datetime("16-Dec-2018") 1000 times with Date::Calc 6.4 and latest DT:F:N v1.06. Cannot reproduce here.