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

Skip to content

Commit 8e9d08b

Browse files
authored
gh-101041: Fix a misspelled name of utctimetuple in a doc warning (GH-101042)
1 parent 5e9df88 commit 8e9d08b

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
@@ -1351,7 +1351,7 @@ Instance methods:
13511351

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

0 commit comments

Comments
 (0)
0