diff options
author | Howie Zhao <howiezhaohr@hotmail.com> | 2023-04-24 18:35:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 18:35:15 (GMT) |
commit | 5b404d6cad2bf53295fdf96305f95efe1ea0174e (patch) | |
tree | 2492945111d2d8c15c4fcc213c368767c77bfaf4 /Doc/library | |
parent | ed948e01bb68e3f026f38a7e43241d850ee1bfb5 (diff) | |
download | cpython-5b404d6cad2bf53295fdf96305f95efe1ea0174e.zip cpython-5b404d6cad2bf53295fdf96305f95efe1ea0174e.tar.gz cpython-5b404d6cad2bf53295fdf96305f95efe1ea0174e.tar.bz2 |
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>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/datetime.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 761f5f0..ab8fed6 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -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])) |