From 36f39464e571def702929a6d5e117ebba9d88b68 Mon Sep 17 00:00:00 2001 From: William Andrea Date: Mon, 30 May 2022 18:00:41 -0400 Subject: [PATCH 1/2] docs: datetime: Encoding is no longer relevant The `.strftime()` methods return a Unicode string as of Python 3.0. --- Doc/library/datetime.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index bde24ec5f2e11e..8dd697dbabe359 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -2496,11 +2496,7 @@ Notes: (1) Because the format depends on the current locale, care should be taken when making assumptions about the output value. Field orderings will vary (for - example, "month/day/year" versus "day/month/year"), and the output may - contain Unicode characters encoded using the locale's default encoding (for - example, if the current locale is ``ja_JP``, the default encoding could be - any one of ``eucJP``, ``SJIS``, or ``utf-8``; use :meth:`locale.getlocale` - to determine the current locale's encoding). + example, "month/day/year" versus "day/month/year"). (2) The :meth:`strptime` method can parse years in the full [1, 9999] range, but From 8754effaade6a23396775d6705a59243aa828e1d Mon Sep 17 00:00:00 2001 From: Paul Ganssle <1377457+pganssle@users.noreply.github.com> Date: Mon, 24 Apr 2023 12:35:44 -0600 Subject: [PATCH 2/2] Update Doc/library/datetime.rst --- Doc/library/datetime.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 8dd697dbabe359..1f67c37803bd5d 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -2496,7 +2496,8 @@ Notes: (1) Because the format depends on the current locale, care should be taken when making assumptions about the output value. Field orderings will vary (for - example, "month/day/year" versus "day/month/year"). + example, "month/day/year" versus "day/month/year"), and the output may + contain non-ASCII characters. (2) The :meth:`strptime` method can parse years in the full [1, 9999] range, but 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