]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101041: Fix a misspelled name of `utctimetuple` in a doc warning (GH-101042)
authorOleg Iarygin <oleg@arhadthedev.net>
Sun, 15 Jan 2023 20:36:31 +0000 (00:36 +0400)
committerGitHub <noreply@github.com>
Sun, 15 Jan 2023 20:36:31 +0000 (12:36 -0800)
Doc/library/datetime.rst

index 8bfed19d3fd2c64ba00c1dd29d72def10d18b64a..eba8824f835113ecd7bdb9b66989f20c7a1c30d7 100644 (file)
@@ -1351,7 +1351,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`.