Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 410c2ce

Browse filesBrowse 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 <howiezhaohr@hotmail.com> Co-authored-by: Paul Ganssle <git@m.ganssle.io> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
1 parent bce93c2 commit 410c2ce
Copy full SHA for 410c2ce

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎Doc/library/datetime.rst

Copy file name to clipboardExpand all lines: Doc/library/datetime.rst
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.