summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtime.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-19 04:55:23 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-19 04:55:23 (GMT)
commit1aec3a16f3bc3d70149c5de67bf2b4af741e9463 (patch)
tree04e964cfe42b12424e087a377b0455dc763fcd7f /Doc/lib/libtime.tex
parent52709e321cd63aa7b091a9d44c3fba78013878cf (diff)
downloadcpython-1aec3a16f3bc3d70149c5de67bf2b4af741e9463.zip
cpython-1aec3a16f3bc3d70149c5de67bf2b4af741e9463.tar.gz
cpython-1aec3a16f3bc3d70149c5de67bf2b4af741e9463.tar.bz2
Add versioning notes: many of the signatures changed to allow the time
used to be omitted (meaning use the current time) as of Python 2.1. Users who need cross-version portability need to know things like this.
Diffstat (limited to 'Doc/lib/libtime.tex')
-rw-r--r--Doc/lib/libtime.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex
index c3f62ed..d5e170b 100644
--- a/Doc/lib/libtime.tex
+++ b/Doc/lib/libtime.tex
@@ -122,6 +122,7 @@ or \function{localtime()} to a 24-character string of the following form:
\code{'Sun Jun 20 23:21:05 1993'}. If \var{tuple} is not provided, the
current time as returned by \function{localtime()} is used. Note: unlike
the C function of the same name, there is no trailing newline.
+\versionchanged[Allowed \var{tuple} to be omitted]{2.1}
\end{funcdesc}
\begin{funcdesc}{clock}{}
@@ -137,6 +138,7 @@ Convert a time expressed in seconds since the epoch to a string
representing local time. If \var{secs} is not provided, the current time
as returned by \function{time()} is used. \code{ctime(\var{secs})}
is equivalent to \code{asctime(localtime(\var{secs}))}.
+\versionchanged[Allowed \var{secs} to be omitted]{2.1}
\end{funcdesc}
\begin{datadesc}{daylight}
@@ -149,11 +151,13 @@ in UTC in which the dst flag is always zero. If \var{secs} is not
provided, the current time as returned by \function{time()} is used.
Fractions of a second are ignored. See above for a description of the
tuple lay-out.
+\versionchanged[Allowed \var{secs} to be omitted]{2.1}
\end{funcdesc}
\begin{funcdesc}{localtime}{\optional{secs}}
Like \function{gmtime()} but converts to local time. The dst flag is
set to \code{1} when DST applies to the given time.
+\versionchanged[Allowed \var{secs} to be omitted]{2.1}
\end{funcdesc}
\begin{funcdesc}{mktime}{tuple}
@@ -180,6 +184,7 @@ Convert a tuple representing a time as returned by \function{gmtime()}
or \function{localtime()} to a string as specified by the \var{format}
argument. If \var{tuple} is not provided, the current time as returned by
\function{localtime()} is used. \var{format} must be a string.
+\versionchanged[Allowed \var{tuple} to be omitted]{2.1}
The following directives can be embedded in the \var{format} string.
They are shown without the optional field width and precision