diff --git a/Doc/library/time.rst b/Doc/library/time.rst index d524f4ffebc753..be17fa68eb7b58 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -257,6 +257,12 @@ 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 + 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)