]> granicus.if.org Git - python/commit
#665194: Add a localtime function to email.utils.
authorR David Murray <rdmurray@bitdance.com>
Sat, 26 May 2012 03:22:59 +0000 (23:22 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sat, 26 May 2012 03:22:59 +0000 (23:22 -0400)
commitd2d521eafdea651de075f987ca80bece033b9b40
treeffec4997db7f5c20cb879d5eac0877154e6e34ad
parentdcaf2ece6cbd432f8ad71ca2bebc4f79e3b97fbc
#665194: Add a localtime function to email.utils.

Without this function people would be tempted to use the other date functions
in email.utils to compute an aware localtime, and those functions are not as
good for that purpose as this code.  The code is Alexander Belopolsy's from
his proposed patch for issue 9527, with a fix (and additional tests) by Brian
K. Jones.
Doc/library/email.util.rst
Lib/email/utils.py
Lib/test/test_email/test_utils.py
Misc/ACKS
Misc/NEWS