Commit 036eae66 authored by Guido van Rossum's avatar Guido van Rossum

mktime returns a float now.

parent 6076ea51
...@@ -86,8 +86,9 @@ to 1 when DST applies to the given time. ...@@ -86,8 +86,9 @@ to 1 when DST applies to the given time.
\begin{funcdesc}{mktime}{tuple} \begin{funcdesc}{mktime}{tuple}
This is the inverse function of \code{localtime}. Its argument is the 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 full 9-tuple (since the dst flag is needed). It returns a floating
input value can't be represented as a non-negative integer, OverflowError is raised. 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} \end{funcdesc}
\begin{funcdesc}{sleep}{secs} \begin{funcdesc}{sleep}{secs}
......
...@@ -86,8 +86,9 @@ to 1 when DST applies to the given time. ...@@ -86,8 +86,9 @@ to 1 when DST applies to the given time.
\begin{funcdesc}{mktime}{tuple} \begin{funcdesc}{mktime}{tuple}
This is the inverse function of \code{localtime}. Its argument is the 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 full 9-tuple (since the dst flag is needed). It returns a floating
input value can't be represented as a non-negative integer, OverflowError is raised. 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} \end{funcdesc}
\begin{funcdesc}{sleep}{secs} \begin{funcdesc}{sleep}{secs}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment