8000 [3.11] gh-94300: Update datetime.strptime documentation (GH-95318) by miss-islington · Pull Request #103785 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-94300: Update datetime.strptime documentation (GH-95318) #103785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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>
  • Loading branch information
2 people authored and miss-islington committed Apr 24, 2023
commit 2481ebcb26e03222a13a97bcf55cbc316fd8b408
2 changes: 1 addition & 1 deletion Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ Other constructors, all class methods:
Return a :class:`.datetime` corresponding to *date_string*, parsed according to
*format*.

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

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

Expand Down
0