]> granicus.if.org Git - python/commitdiff
mktime returns a float now.
authorGuido van Rossum <guido@python.org>
Wed, 26 Jun 1996 19:25:12 +0000 (19:25 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 26 Jun 1996 19:25:12 +0000 (19:25 +0000)
Doc/lib/libtime.tex
Doc/libtime.tex

index f91a492a8a3b168b42615b11147d17245226ea44..e9344081abdfd9285281dbdd8ceedaa2efd5155c 100644 (file)
@@ -86,8 +86,9 @@ 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.  If the
-input value can't be represented as a non-negative integer, OverflowError is raised.
+full 9-tuple (since the dst flag is needed).  It returns a floating
+point number, for compatibility with \code{time.time()}.  If the input
+value can't be represented as a valid time, OverflowError is raised.
 \end{funcdesc}
 
 \begin{funcdesc}{sleep}{secs}
index f91a492a8a3b168b42615b11147d17245226ea44..e9344081abdfd9285281dbdd8ceedaa2efd5155c 100644 (file)
@@ -86,8 +86,9 @@ 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.  If the
-input value can't be represented as a non-negative integer, OverflowError is raised.
+full 9-tuple (since the dst flag is needed).  It returns a floating
+point number, for compatibility with \code{time.time()}.  If the input
+value can't be represented as a valid time, OverflowError is raised.
 \end{funcdesc}
 
 \begin{funcdesc}{sleep}{secs}