Tuesday, October 13, 2009

DateTime::Format::Natural Fail

The Perl module DateTime::Format::Natural describes itself as: "DateTime::Format::Natural takes a string with a human readable date/time and creates a machine readable one by applying natural parsing logic."

As such, it can parse strings like the following (taken straight from its own docs):
march
11 January
dec 25
feb 28 3am
feb 28 3pm
may 27th
2005
march 1st 2009
October 2006
february 14, 2004
jan 3 2010
3 jan 2000
27/5/1979
4:00
17:00
3:20:00
But you know what it can't parse? This:
12/03/2008 06:56:06 AM
Srsly?

No comments:

Post a Comment