[Python-checkins] python/dist/src/Doc/lib libtime.tex,1.64,1.65
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Tue Aug 3 19:58:56 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7177/Doc/lib
Modified Files:
libtime.tex
Log Message:
allow ctime(), gmtime(), and localtime() to take None as equivalent to an omitted arg
(closes SF bug #658254, patch #663482)
Index: libtime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libtime.tex,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** libtime.tex 10 May 2004 18:53:00 -0000 1.64
--- libtime.tex 3 Aug 2004 17:58:54 -0000 1.65
***************
*** 158,166 ****
\begin{funcdesc}{ctime}{\optional{secs}}
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}))}.
Locale information is not used by \function{ctime()}.
\versionchanged[Allowed \var{secs} to be omitted]{2.1}
\end{funcdesc}
--- 158,169 ----
\begin{funcdesc}{ctime}{\optional{secs}}
Convert a time expressed in seconds since the epoch to a string
! representing local time. If \var{secs} is not provided or
! \constant{None}, the current time as returned by \function{time()} is
! used. \code{ctime(\var{secs})} is equivalent to
! \code{asctime(localtime(\var{secs}))}.
Locale information is not used by \function{ctime()}.
\versionchanged[Allowed \var{secs} to be omitted]{2.1}
+ \versionchanged[If \var{secs} is \constant{None}, the current time is
+ used]{2.3}
\end{funcdesc}
***************
*** 172,185 ****
Convert a time expressed in seconds since the epoch to a \class{struct_time}
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
! \class{struct_time} object.
\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}
--- 175,194 ----
Convert a time expressed in seconds since the epoch to a \class{struct_time}
in UTC in which the dst flag is always zero. If \var{secs} is not
! provided or \constant{None}, the current time as returned by
! \function{time()} is used. Fractions of a second are ignored. See
! above for a description of the \class{struct_time} object.
\versionchanged[Allowed \var{secs} to be omitted]{2.1}
+ \versionchanged[If \var{secs} is \constant{None}, the current time is
+ used]{2.3}
\end{funcdesc}
\begin{funcdesc}{localtime}{\optional{secs}}
! Like \function{gmtime()} but converts to local time. If \var{secs} is
! not provided or \constant{None}, the current time as returned by
! \function{time()} is used. The dst flag is set to \code{1} when DST
! applies to the given time.
\versionchanged[Allowed \var{secs} to be omitted]{2.1}
+ \versionchanged[If \var{secs} is \constant{None}, the current time is
+ used]{2.3}
\end{funcdesc}
More information about the Python-checkins
mailing list