From 036eae664788df268ab8b95b522f3a95878624b1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 26 Jun 1996 19:25:12 +0000 Subject: [PATCH] mktime returns a float now. --- Doc/lib/libtime.tex | 5 +++-- Doc/libtime.tex | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex index f91a492a8a..e9344081ab 100644 --- a/Doc/lib/libtime.tex +++ b/Doc/lib/libtime.tex @@ -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} diff --git a/Doc/libtime.tex b/Doc/libtime.tex index f91a492a8a..e9344081ab 100644 --- a/Doc/libtime.tex +++ b/Doc/libtime.tex @@ -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} -- 2.50.1