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 methane
Recipients akira, belopolsky, methane, r.david.murray
Date 2014-11-09.04:22:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415506946.09.0.27520263643.issue22791@psf.upfronthosting.co.za>
In-reply-to
Content
akira:

It seems cleaner than utcfromtimestamp().replace().
I think utcfromtimestamp() should have note about it.

"""
Note that it returns **naive** (tz=None) datetime.  Naive datetime is
treated as localtime in most functions.
If you want to create aware datetime, use `.fromtimestamp(ts, tz=timezone.utc)` instead.
"""

And I want to add this note to docstring too, since I read docstring before
document.
History
Date User Action Args
2014-11-09 04:22:26methanesetrecipients: + methane, belopolsky, r.david.murray, akira
2014-11-09 04:22:26methanesetmessageid: <1415506946.09.0.27520263643.issue22791@psf.upfronthosting.co.za>
2014-11-09 04:22:26methanelinkissue22791 messages
2014-11-09 04:22:25methanecreate