change the date string into timestamp

Heiko Wundram modelnine at ceosg.de
Sat Apr 9 08:47:56 EDT 2005


Am Samstag, 9. April 2005 12:10 schrieb Fredrik Lundh:
> >>> from email.Utils import parsedate_tz
> >>> parsedate_tz(formatdate(x, localtime=1))
>
> (2005, 4, 8, 14, 22, 14, 0, 1, 0, 7200)

Very cool! Learning something new every day!

-- 
--- Heiko.
listening to: Pearl Jam - Dissident
  see you at: http://www.stud.mh-hannover.de/~hwundram/wordpress/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050409/60a8f5ca/attachment.sig>


More information about the Python-list mailing list