From 8c5dbecb0767e75fcf93283b7f080a0f294cad41 Mon Sep 17 00:00:00 2001 From: slateny <46876382+slateny@users.noreply.github.com> Date: Sun, 20 Feb 2022 20:21:47 -0800 Subject: [PATCH 1/3] Update time.rst --- Doc/library/time.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index d524f4ffebc753..9e99cec0402655 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -256,6 +256,13 @@ Functions Like :func:`gmtime` but converts to local time. If *secs* is not provided or :const:`None`, the current time as returned by :func:`.time` is used. The dst flag is set to ``1`` when DST applies to the given time. + + :func:`localtime` may raise :exc:`OverflowError`, if the timestamp is out of + the range of values supported by the platform C :c:func:`localtime` or + :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or + :c:func:`gmtime` failure. + It's common for this to be restricted to years in + 1970 through 2038. .. function:: mktime(t) From b847053f2fd72ccbfbbc3e65c612ef5325499869 Mon Sep 17 00:00:00 2001 From: slateny <46876382+slateny@users.noreply.github.com> Date: Mon, 21 Feb 2022 16:46:44 -0800 Subject: [PATCH 2/3] Remove trailing whitespace + indentation on empty line --- Doc/library/time.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 9e99cec0402655..61037280268ffd 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -256,13 +256,13 @@ Functions Like :func:`gmtime` but converts to local time. If *secs* is not provided or :const:`None`, the current time as returned by :func:`.time` is used. The dst flag is set to ``1`` when DST applies to the given time. - + :func:`localtime` may raise :exc:`OverflowError`, if the timestamp is out of the range of values supported by the platform C :c:func:`localtime` or :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or :c:func:`gmtime` failure. It's common for this to be restricted to years in - 1970 through 2038. + 1970 through 2038. .. function:: mktime(t) From 70004a706486377f8c56ddc646ffe7c8954ac451 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Fri, 11 Mar 2022 13:45:58 -0500 Subject: [PATCH 3/3] Tweak wording --- Doc/library/time.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 61037280268ffd..be17fa68eb7b58 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -257,12 +257,11 @@ Functions :const:`None`, the current time as returned by :func:`.time` is used. The dst flag is set to ``1`` when DST applies to the given time. - :func:`localtime` may raise :exc:`OverflowError`, if the timestamp is out of - the range of values supported by the platform C :c:func:`localtime` or - :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or - :c:func:`gmtime` failure. - It's common for this to be restricted to years in - 1970 through 2038. + :func:`localtime` may raise :exc:`OverflowError`, if the timestamp is + outside the range of values supported by the platform C :c:func:`localtime` + or :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or + :c:func:`gmtime` failure. It's common for this to be restricted to years + between 1970 and 2038. .. function:: mktime(t)