From 5b404d6cad2bf53295fdf96305f95efe1ea0174e Mon Sep 17 00:00:00 2001 From: Howie Zhao Date: Tue, 25 Apr 2023 02:35:15 +0800 Subject: 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 --- Doc/library/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])) -- cgit v0.12