Skip to content

Commit

Permalink
pythongh-94300: Update datetime.strptime documentation (python#95318)
Browse files Browse the repository at this point in the history
The new wording better reflects the cases where `datetime.strptime` differs from` time.strptime`.

---------

Co-authored-by: Paul Ganssle <git@m.ganssle.io>
  • Loading branch information
howiezhao and pganssle committed Apr 24, 2023
1 parent ed948e0 commit 5b404d6
Showing 1 changed file with 1 addition and 1 deletion.
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 comments on commit 5b404d6

Please sign in to comment.