diff options
author | Ofek Lev <ofekmeister@gmail.com> | 2019-12-01 05:44:21 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-01 05:44:21 (GMT) |
commit | 575d0b46d122292ca6e0576a91265d7abf7cbc3d (patch) | |
tree | 2dd68efe3b485e10c81e170d527d0263f7a7b198 /Doc | |
parent | 8d62df60d8733d0fa9aee14ef746d0009a7a9726 (diff) | |
download | cpython-575d0b46d122292ca6e0576a91265d7abf7cbc3d.zip cpython-575d0b46d122292ca6e0576a91265d7abf7cbc3d.tar.gz cpython-575d0b46d122292ca6e0576a91265d7abf7cbc3d.tar.bz2 |
Fix typos (GH-17423)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/datetime.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index f9a114e..2bd25cc 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -881,7 +881,7 @@ Other constructors, all class methods: Because naive ``datetime`` objects are treated by many ``datetime`` methods as local times, it is preferred to use aware datetimes to represent times in UTC. As such, the recommended way to create an object representing the - current time in UTC by calling ``datetime.now(timezone.utc)``. + current time in UTC is by calling ``datetime.now(timezone.utc)``. .. classmethod:: datetime.fromtimestamp(timestamp, tz=None) @@ -942,7 +942,7 @@ Other constructors, all class methods: Because naive ``datetime`` objects are treated by many ``datetime`` methods as local times, it is preferred to use aware datetimes to represent times in UTC. As such, the recommended way to create an object representing a - specific timestamp in UTC by calling + specific timestamp in UTC is by calling ``datetime.fromtimestamp(timestamp, tz=timezone.utc)``. .. versionchanged:: 3.3 |