gh-101041: Fix a misspelled name of `utctimetuple` in a doc warning (GH-101042)

This commit is contained in:
Oleg Iarygin 2023-01-16 00:36:31 +04:00 committed by GitHub
parent 5e9df888dd
commit 8e9d08b062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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`.