Natural Language Date Processing.

Michael Amrhein michael at adrhinum.de
Thu Feb 9 03:47:01 EST 2006


Andrew Gwozdziewycz schrieb:
>> You may take a look at http://labix.org/python-dateutil
>> Have fun
>> Michael
>>
> 
> Looks like it does a good job parsing dates, but doesn't seem to do
> english dates. I found a javascript implementation of a few functions
> that will probably be relatively easy to port to python. Whether or
> not it'll perform well is another story... Thanks for the help.
> 
> --
> Andrew Gwozdziewycz <apgwoz at gmail.com>
> http://ihadagreatview.org
> http://plasticandroid.org

 >>>from dateutil.parser import parse
 >>>parse("April 16th, 2003")
datetime.datetime(2003, 4, 16, 0, 0)
 >>>parse("4/16/2003")
datetime.datetime(2003, 4, 16, 0, 0)

Aren't these "english dates"?

Michael



More information about the Python-list mailing list