This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients ajaksu2, akuchling, belopolsky, brett.cannon, doerwalter, eric.araujo, r.david.murray, tim.peters
Date 2011-07-13.23:04:37
SpamBayes Score 7.385748e-05
Marked as misclassified No
Message-id <>
OK, here is a new patch proposal.  As suggested by Alexander, it adds two functions to email.utils: format_datetime and parsedate_to_datetime.  Adding these does not require having localtime.  In fact, with this patch you can get an aware datetime representing email's current best guess at localtime by doing:

   dt = parsedate_to_datetime(formatdate(localtime=True))

Reviews welcome, but this is simple enough I'll probably just commit it if no one objects.
Date User Action Args
2011-07-13 23:04:38r.david.murraysetrecipients: + r.david.murray, tim.peters, akuchling, doerwalter, brett.cannon, belopolsky, ajaksu2, eric.araujo
2011-07-13 23:04:38r.david.murraysetmessageid: <>
2011-07-13 23:04:37r.david.murraylinkissue665194 messages
2011-07-13 23:04:37r.david.murraycreate