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 -- http://mail.python.org/mailman/listinfo/python-list