File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -881,7 +881,7 @@ Other constructors, all class methods:
881
881
Because naive ``datetime `` objects are treated by many ``datetime `` methods
882
882
as local times, it is preferred to use aware datetimes to represent times
883
883
in UTC. As such, the recommended way to create an object representing the
884
- current time in UTC by calling ``datetime.now(timezone.utc) ``.
884
+ current time in UTC is by calling ``datetime.now(timezone.utc) ``.
885
885
886
886
887
887
.. classmethod :: datetime.fromtimestamp(timestamp, tz=None)
@@ -942,7 +942,7 @@ Other constructors, all class methods:
942
942
Because naive ``datetime `` objects are treated by many ``datetime `` methods
943
943
as local times, it is preferred to use aware datetimes to represent times
944
944
in UTC. As such, the recommended way to create an object representing a
945
- specific timestamp in UTC by calling
945
+ specific timestamp in UTC is by calling
946
946
``datetime.fromtimestamp(timestamp, tz=timezone.utc) ``.
947
947
948
948
.. versionchanged :: 3.3
You can’t perform that action at this time.
0 commit comments