Kaydet (Commit) 036eae66 authored tarafından Guido van Rossum's avatar Guido van Rossum

mktime returns a float now.

üst 6076ea51
......@@ -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}
......
......@@ -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}
......
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