Skip to content

Commit 5b404d6

Browse files
howiezhaopganssle
andauthored
gh-94300: Update datetime.strptime documentation (#95318)
The new wording better reflects the cases where `datetime.strptime` differs from` time.strptime`. --------- Co-authored-by: Paul Ganssle <git@m.ganssle.io>
1 parent ed948e0 commit 5b404d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/datetime.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ Other constructors, all class methods:
10431043
Return a :class:`.datetime` corresponding to *date_string*, parsed according to
10441044
*format*.
10451045

1046-
This is equivalent to::
1046+
If *format* does not contain microseconds or timezone information, this is equivalent to::
10471047

10481048
datetime(*(time.strptime(date_string, format)[0:6]))
10491049

0 commit comments

Comments
 (0)