Message230884
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. |
|
Date |
User |
Action |
Args |
2014-11-09 04:22:26 | methane | set | recipients:
+ methane, belopolsky, r.david.murray, akira |
2014-11-09 04:22:26 | methane | set | messageid: <1415506946.09.0.27520263643.issue22791@psf.upfronthosting.co.za> |
2014-11-09 04:22:26 | methane | link | issue22791 messages |
2014-11-09 04:22:25 | methane | create | |
|