From feeadef61e9b88af0a7ea55a2e8851f0dc5365c0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 12 Feb 1996 23:21:58 +0000 Subject: [PATCH] document OverflowError exception on mktime() --- Doc/lib/libtime.tex | 3 ++- Doc/libtime.tex | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex index 56488d1361d..f91a492a8a3 100644 --- a/Doc/lib/libtime.tex +++ b/Doc/lib/libtime.tex @@ -86,7 +86,8 @@ to 1 when DST applies to the given time. \begin{funcdesc}{mktime}{tuple} This is the inverse function of \code{localtime}. Its argument is the -full 9-tuple (since the dst flag is needed). It returns an integer. +full 9-tuple (since the dst flag is needed). It returns an integer. If the +input value can't be represented as a non-negative integer, OverflowError is raised. \end{funcdesc} \begin{funcdesc}{sleep}{secs} diff --git a/Doc/libtime.tex b/Doc/libtime.tex index 56488d1361d..f91a492a8a3 100644 --- a/Doc/libtime.tex +++ b/Doc/libtime.tex @@ -86,7 +86,8 @@ to 1 when DST applies to the given time. \begin{funcdesc}{mktime}{tuple} This is the inverse function of \code{localtime}. Its argument is the -full 9-tuple (since the dst flag is needed). It returns an integer. +full 9-tuple (since the dst flag is needed). It returns an integer. If the +input value can't be represented as a non-negative integer, OverflowError is raised. \end{funcdesc} \begin{funcdesc}{sleep}{secs}