Skip to content

Commit 5283e57

Browse files
calluwshihai1991
authored andcommitted
closes bpo-29275: Remove Y2K reference from time module docs (pythonGH-17321)
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.
1 parent 6e3807f commit 5283e57

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Doc/library/time.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,12 @@ An explanation of some terminology and conventions is in order.
4242
library; for 32-bit systems, it is typically in 2038.
4343

4444
.. index::
45-
single: Year 2000
46-
single: Y2K
45+
single: 2-digit years
4746

48-
.. _time-y2kissues:
49-
50-
* **Year 2000 (Y2K) issues**: Python depends on the platform's C library, which
51-
generally doesn't have year 2000 issues, since all dates and times are
52-
represented internally as seconds since the epoch. Function :func:`strptime`
53-
can parse 2-digit years when given ``%y`` format code. When 2-digit years are
54-
parsed, they are converted according to the POSIX and ISO C standards: values
55-
69--99 are mapped to 1969--1999, and values 0--68 are mapped to 2000--2068.
47+
* Function :func:`strptime` can parse 2-digit years when given ``%y`` format
48+
code. When 2-digit years are parsed, they are converted according to the POSIX
49+
and ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68
50+
are mapped to 2000--2068.
5651

5752
.. index::
5853
single: UTC

0 commit comments

Comments
 (0)