Natural Language Date Processing.

andychambers2002 at yahoo.co.uk andychambers2002 at yahoo.co.uk
Tue Feb 7 08:51:40 EST 2006


>From the docs for PHP's 'strtotime'

Parameters

time
The string to parse, according to the GNU Date Input Formats syntax.
Before PHP 5.0, microseconds weren't allowed in the time, since PHP 5.0
they are allowed but ignored.
...

It seems that the string to be parsed has to be provided in the GNU
date format.  One option would be to provide a function that calls out
to the the GNU date program with whatever string you want to parse.

I'm not aware of an existing function in Python that does this.

Regards,
Andy




More information about the Python-list mailing list