Skip to content

Commit e241f58

Browse files
committed
Fixed wrong method name
1 parent 492aa13 commit e241f58

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
@@ -1338,7 +1338,7 @@ Instance methods:
13381338

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

0 commit comments

Comments
 (0)