diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-03-01 19:52:07 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-03-01 19:52:07 (GMT) |
commit | e2e178e081a621d2c1fd8ceb65ce7735b3036def (patch) | |
tree | 3a6ca0160bf0bc2a357fb3c11806e5a07dd17543 /Lib/datetime.py | |
parent | 3de4aae1d06bddb44e157548060ddc4a43ff5657 (diff) | |
download | cpython-e2e178e081a621d2c1fd8ceb65ce7735b3036def.zip cpython-e2e178e081a621d2c1fd8ceb65ce7735b3036def.tar.gz cpython-e2e178e081a621d2c1fd8ceb65ce7735b3036def.tar.bz2 |
Closes issue #22791: Improved datetime from timestamp methods documentation.
Original patch by Akira Li.
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r-- | Lib/datetime.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class datetime(date): @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) |