From: Guido van Rossum Date: Wed, 9 Jun 1999 15:11:58 +0000 (+0000) Subject: Add doc for timegm(). X-Git-Tag: v1.6a1~1265 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4727456d46d54ba0b61878251db823bf15182e60;p=thirdparty%2FPython%2Fcpython.git Add doc for timegm(). --- diff --git a/Doc/lib/libcalendar.tex b/Doc/lib/libcalendar.tex index 0c7207b5fd0e..59e344347cad 100644 --- a/Doc/lib/libcalendar.tex +++ b/Doc/lib/libcalendar.tex @@ -46,3 +46,11 @@ week will use. \begin{funcdesc}{prcal}{year} Prints the calendar for the year \var{year}. \end{funcdesc} + +\begin{funcdesc}{timegm}{tuple} +An unrelated but handy function that takes a time tuple such are +returned by the \function{gmtime()} function in the \module{time} +module, and returns the corresponding Unix timestamp value, assuming +an epoch of 1970, and the POSIX encoding. In fact, +\function{gmtime()} and \function{timegm()} are each others inverse. +\end{funcdesc}