diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index e700b0a1347..c7b96671eff 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1350,7 +1350,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`.