mirror of https://github.com/python/cpython
gh-94300: Update datetime.strptime documentation (#95318)
The new wording better reflects the cases where `datetime.strptime` differs from` time.strptime`. --------- Co-authored-by: Paul Ganssle <git@m.ganssle.io>
This commit is contained in:
parent
ed948e01bb
commit
5b404d6cad
|
@ -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]))
|
||||
|
||||
|
|
Loading…
Reference in New Issue