Comparing RFC1123 based Dates
Phoe6
orsenthil at gmail.com
Sat Aug 4 23:35:11 EDT 2007
Phoe6 wrote:
> I would like to parse RFC 1123 date format and compare two dates. I
> find that
> datetime module does not specifically confirms to any RFC. Any
> suggestions as how I can handle the RFC 1123 date format using
> standard libraries before I go to re based parsing?
Well,
>>> import time
>>> timeobj = time.strptime("Thu, 01 Dec 1994 16:00:00 GMT","%a, %d %b %Y %H:%M:%S %Z")
was easy.
Thanks,
Senthil
More information about the Python-list
mailing list