8000 gh-101041: Fix a misspelled name of `utctimetuple` in a doc warning (… · python/cpython@1998ea6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1998ea6

Browse files
gh-101041: Fix a misspelled name of utctimetuple in a doc warning (GH-101042)
(cherry picked from commit 8e9d08b) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
1 parent db65a32 commit 1998ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ Instance methods:
13501350

13511351
Because naive ``datetime`` objects are treated by many ``datetime`` methods
13521352
as local times, it is preferred to use aware datetimes to represent times
1353-
in UTC; as a result, using ``utcfromtimetuple`` may give misleading
1353+
in UTC; as a result, using :meth:`datetime.utctimetuple` may give misleading
13541354
results. If you have a naive ``datetime`` representing UTC, use
13551355
``datetime.replace(tzinfo=timezone.utc)`` to make it aware, at which point
13561356
you can use :meth:`.datetime.timetuple`.

0 commit comments

Comments
 (0)
0