mktime returns a float now.

This commit is contained in:
Guido van Rossum 1996-06-26 19:25:12 +00:00
parent 6076ea51e2
commit 036eae6647
2 changed files with 6 additions and 4 deletions

View 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}

View 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}