We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 492aa13 commit e241f58Copy full SHA for e241f58
Doc/library/datetime.rst
@@ -1338,7 +1338,7 @@ Instance methods:
1338
1339
Because naive ``datetime`` objects are treated by many ``datetime`` methods
1340
as local times, it is preferred to use aware datetimes to represent times
1341
- in UTC; as a result, using ``utcfromtimetuple`` may give misleading
+ in UTC; as a result, using ``utctimetuple`` may give misleading
1342
results. If you have a naive ``datetime`` representing UTC, use
1343
``datetime.replace(tzinfo=timezone.utc)`` to make it aware, at which point
1344
you can use :meth:`.datetime.timetuple`.
0 commit comments