Skip to content

Commit

Permalink
gh-101041: Fix a misspelled name of utctimetuple in a doc warning (G…
Browse files Browse the repository at this point in the history
…H-101042)

(cherry picked from commit 8e9d08b)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
  • Loading branch information
miss-islington and arhadthedev authored Jan 20, 2023
1 parent 2c1eeb5 commit 10c6130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ Instance 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 a result, using ``utcfromtimetuple`` may give misleading
in UTC; as a result, using :meth:`datetime.utctimetuple` may give misleading
results. If you have a naive ``datetime`` representing UTC, use
``datetime.replace(tzinfo=timezone.utc)`` to make it aware, at which point
you can use :meth:`.datetime.timetuple`.
Expand Down

0 comments on commit 10c6130

Please sign in to comment.