]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101041: Fix a misspelled name of `utctimetuple` in a doc warning (GH-101042)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 20 Jan 2023 05:06:04 +0000 (21:06 -0800)
committerGitHub <noreply@github.com>
Fri, 20 Jan 2023 05:06:04 +0000 (21:06 -0800)
(cherry picked from commit 8e9d08b062bbabfe439bc73f82e3d7bb3800189e)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Doc/library/datetime.rst

index f222ec9bb771a89c16e0a6df20624b99d094dd41..e23d2a96cc26d43a3d8ce0cf1da860c274bb0484 100644 (file)
@@ -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`.