From b227130facda70994987265bf6f5bd1b322b2dfc Mon Sep 17 00:00:00 2001 From: howiezhao Date: Wed, 27 Jul 2022 20:02:22 +0800 Subject: [PATCH 1/2] docs: update datetime library documentation --- 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 761f5f04b9b288..31b034f9611e8d 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 the *format* does not contain microseconds or timezone information, this is equivalent to:: datetime(*(time.strptime(date_string, format)[0:6])) From eddc6c6358697ea0b8b72402a1c388a2ba1fd259 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Mon, 24 Apr 2023 12:06:32 -0600 Subject: [PATCH 2/2] Tweak wording --- 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 31b034f9611e8d..ab8fed691e86c1 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*. - If the *format* does not contain microseconds or timezone information, 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])) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy