commit | e2e178e081a621d2c1fd8ceb65ce7735b3036def | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Sun Mar 01 14:52:07 2015 -0500 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Sun Mar 01 14:52:07 2015 -0500 |
tree | 3a6ca0160bf0bc2a357fb3c11806e5a07dd17543 | |
parent | 3de4aae1d06bddb44e157548060ddc4a43ff5657 [diff] [blame] |
Closes issue #22791: Improved datetime from timestamp methods documentation. Original patch by Akira Li.
diff --git a/Lib/datetime.py b/Lib/datetime.py index 2768e9b..de57472 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py
@@ -1393,7 +1393,7 @@ @classmethod def utcfromtimestamp(cls, t): - "Construct a UTC datetime from a POSIX timestamp (like time.time())." + """Construct a naive UTC datetime from a POSIX timestamp.""" t, frac = divmod(t, 1.0) us = int(frac * 1e6)