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
5b404d6cad2bf53295fdf96305f95efe1ea0174e)
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>
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]))