]> granicus.if.org Git - python/commitdiff
document OverflowError exception on mktime()
authorGuido van Rossum <guido@python.org>
Mon, 12 Feb 1996 23:21:58 +0000 (23:21 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 12 Feb 1996 23:21:58 +0000 (23:21 +0000)
Doc/lib/libtime.tex
Doc/libtime.tex

index 56488d1361d02754d3bd2fc515f0e21a0c1762ca..f91a492a8a3b168b42615b11147d17245226ea44 100644 (file)
@@ -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}
index 56488d1361d02754d3bd2fc515f0e21a0c1762ca..f91a492a8a3b168b42615b11147d17245226ea44 100644 (file)
@@ -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}