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 different. I'd also like to see factored out various date formating functions, so that the module is more or less symmetric. -Barry
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4