]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos (GH-17423)
authorOfek Lev <ofekmeister@gmail.com>
Sun, 1 Dec 2019 05:44:21 +0000 (00:44 -0500)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 1 Dec 2019 05:44:21 +0000 (21:44 -0800)
Doc/library/datetime.rst

index f9a114eeb0a75e53b37f3a24007ddf51a4e712bb..2bd25cc4362b26722dd3091d488a6000982c4d31 100644 (file)
@@ -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