[Python-Dev] Re: datetime issues (original) (raw)

A.M. Kuchling amk at amk.ca
Mon Sep 15 08:42:58 EDT 2003


On Sun, 14 Sep 2003 20:35:35 -0400, Tim Peters <tim.one at comcast.net> wrote:

If Guido wanted to stay out of the relatively clear time zone business, I can imagine his interest in trying to guess how to parse date and time strings. Apart from Brett's strptime(), I believe the email module has some useful string->datetime code.

The PyXML package includes a parser (xml.utils.iso8601) for the date/time format most commonly used in XML applications. That and a parser for RFC822 dates would meet the needs of many technical applications (though not ones where users can enter dates -- but that problem may be too complicated for the stdlib). I'll happily convert the iso8601 module for addition to the standard library if date parsing is deemed a topic of interest.

--amk



More information about the Python-Dev mailing list