[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 5b404d6cad)

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>
This commit is contained in:
Miss Islington (bot) 2023-04-26 13:55:39 -07:00 committed by GitHub
parent bce93c2d83
commit 410c2ce956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]))