From 5aaf96c9c611b80ed7634b3e355acb6a1c30fa81 Mon Sep 17 00:00:00 2001 From: Callum Date: Thu, 21 Nov 2019 11:33:27 +0000 Subject: [PATCH 1/2] Remove the Y2K reference from time doc warning about 2-digit year conversion The Y2K reference is not needed as it only points out that Python's use of C standard functions doesn't generally suffer from Y2K issues; the point regarding conventions for conversion of 2-digit years in :func:`strptime` is still valid. --- Doc/library/time.rst | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 65ab679669eb3d..29dcb651708a57 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -43,16 +43,13 @@ An explanation of some terminology and conventions is in order. .. index:: single: Year 2000 + single: 2-digit years single: Y2K -.. _time-y2kissues: - -* **Year 2000 (Y2K) issues**: Python depends on the platform's C library, which - generally doesn't have year 2000 issues, since all dates and times are - represented internally as seconds since the epoch. Function :func:`strptime` - can parse 2-digit years when given ``%y`` format code. When 2-digit years are - parsed, they are converted according to the POSIX and ISO C standards: values - 69--99 are mapped to 1969--1999, and values 0--68 are mapped to 2000--2068. +* Function :func:`strptime` can parse 2-digit years when given ``%y`` format + code. When 2-digit years are parsed, they are converted according to the POSIX + and ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68 + are mapped to 2000--2068. .. index:: single: UTC From 851451b88a954229428e09812a95da41e252bdbf Mon Sep 17 00:00:00 2001 From: Callum Ward Date: Fri, 22 Nov 2019 09:55:16 +0000 Subject: [PATCH 2/2] Remove additional index references to Y2K/Year 2000 These are likely no longer needed as the paragraph now no longer refers to them directly as topics. --- Doc/library/time.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 29dcb651708a57..e628ac44e80643 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -42,9 +42,7 @@ An explanation of some terminology and conventions is in order. library; for 32-bit systems, it is typically in 2038. .. index:: - single: Year 2000 single: 2-digit years - single: Y2K * Function :func:`strptime` can parse 2-digit years when given ``%y`` format code. When 2-digit years are parsed, they are converted according to the POSIX