[Python-Dev] Re: datetime issues

Barry Warsaw barry at python.org
Mon Sep 15 09:14:17 EDT 2003

On Mon, 2003-09-15 at 08:42, A.M. Kuchling wrote:

> 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.

Yep, I think email._parseaddr.parsedate{,_tz}() is an RFC 2822 compliant
date parser.  Note that there's also Unix-from dates which are slightly

I'd also like to see factored out various date formating functions, so
that the module is more or less symmetric. 


More information about the Python-Dev mailing list