Skip to content

Commit 410c2ce

Browse files
miss-islingtonhowiezhaopganssleambvabalkin
authored
[3.11] gh-94300: Update datetime.strptime documentation (GH-95318) (#103785)
gh-94300: Update datetime.strptime documentation (GH-95318) The new wording better reflects the cases where `datetime.strptime` differs from` time.strptime`. --------- (cherry picked from commit 5b404d6) Co-authored-by: Howie Zhao <[email protected]> Co-authored-by: Paul Ganssle <[email protected]> Co-authored-by: Łukasz Langa <[email protected]> Co-authored-by: Alexander Belopolsky <[email protected]>
1 parent bce93c2 commit 410c2ce

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)