Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit feeadef

Browse files
committed
document OverflowError exception on mktime()
1 parent 264302d commit feeadef

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/lib/libtime.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ \section{Built-in Module \sectcode{time}}
8686

8787
\begin{funcdesc}{mktime}{tuple}
8888
This is the inverse function of \code{localtime}. Its argument is the
89-
full 9-tuple (since the dst flag is needed). It returns an integer.
89+
full 9-tuple (since the dst flag is needed). It returns an integer. If the
90+
input value can't be represented as a non-negative integer, OverflowError is raised.
9091
\end{funcdesc}
9192

9293
\begin{funcdesc}{sleep}{secs}

Doc/libtime.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ \section{Built-in Module \sectcode{time}}
8686

8787
\begin{funcdesc}{mktime}{tuple}
8888
This is the inverse function of \code{localtime}. Its argument is the
89-
full 9-tuple (since the dst flag is needed). It returns an integer.
89+
full 9-tuple (since the dst flag is needed). It returns an integer. If the
90+
input value can't be represented as a non-negative integer, OverflowError is raised.
9091
\end{funcdesc}
9192

9293
\begin{funcdesc}{sleep}{secs}

0 commit comments

Comments
 (0)