Comparing RFC1123 based Dates

Steve Holden steve at holdenweb.com
Sun Aug 5 10:22:23 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?
> 
I realise you want to stick to the standard library. If you decide you 
can't however, you should definitely take a look at mx.DateTime, as the 
mx.DateTime.ARPA submodule provides exactly what you require.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list