]> granicus.if.org Git - python/commitdiff
Add doc for timegm().
authorGuido van Rossum <guido@python.org>
Wed, 9 Jun 1999 15:11:58 +0000 (15:11 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 9 Jun 1999 15:11:58 +0000 (15:11 +0000)
Doc/lib/libcalendar.tex

index 0c7207b5fd0e6402acdfd16d47266598b84e7f56..59e344347cadb4537ebd0067b9c53ff2fa1de09a 100644 (file)
@@ -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}