Skip to content

Commit 57098db

Browse files
committed
Fix method name
1 parent 221ba98 commit 57098db

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
@@ -2734,7 +2734,7 @@ Notes:
27342734
When used with :meth:`~.datetime.strftime`, behaves exactly as ``%z``,
27352735
except that a colon separator is added between hours, minutes and seconds.
27362736

2737-
When used with :meth:`~.datetime.stpftime`, the UTC offset is *required*
2737+
When used with :meth:`~.datetime.strptime`, the UTC offset is *required*
27382738
to have a colon as a separator between hours, minutes and seconds.
27392739
For example, ``'+01:00:00'`` (but *not* ``'+010000'``) will be parsed as
27402740
an offset of one hour. In addition, providing ``'Z'`` is identical to

0 commit comments

Comments
 (0)