diff options
author | Fred Drake <fdrake@acm.org> | 2000-04-03 20:13:55 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-04-03 20:13:55 (GMT) |
commit | 38e5d27caee56b6958e0034e342abb48e6100390 (patch) | |
tree | 6a0c853da853123dd2e628e8ec187517250c2530 /Doc/lib/libcalendar.tex | |
parent | 659ebfa79e891fc5e2480cd66c157970df57c451 (diff) | |
download | cpython-38e5d27caee56b6958e0034e342abb48e6100390.zip cpython-38e5d27caee56b6958e0034e342abb48e6100390.tar.gz cpython-38e5d27caee56b6958e0034e342abb48e6100390.tar.bz2 |
Merged changes from the 1.5.2p2 release.
(Very rough.)
Diffstat (limited to 'Doc/lib/libcalendar.tex')
-rw-r--r-- | Doc/lib/libcalendar.tex | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/Doc/lib/libcalendar.tex b/Doc/lib/libcalendar.tex index 59e3443..ef715f5 100644 --- a/Doc/lib/libcalendar.tex +++ b/Doc/lib/libcalendar.tex @@ -1,18 +1,18 @@ -% This section was contributed by Drew Csillag <drew_csillag@geocities.com>. - \section{\module{calendar} --- - Functions that emulate the \UNIX{} \program{cal} program.} -\declaremodule{standard}{calendar} - -\modulesynopsis{Functions that emulate the \UNIX{} \program{cal} -program.} + General calendar-related functions} +\declaremodule{standard}{calendar} +\modulesynopsis{General functions for working with the calendar, + including some emulation of the \UNIX{} \program{cal} + program.} +\sectionauthor{Drew Csillag}{drew_csillag@geocities.com} This module allows you to output calendars like the \UNIX{} -\manpage{cal}{1} program. +\program{cal} program, and provides additional useful functions +related to the calendar. \begin{funcdesc}{isleap}{year} -Returns \code{1} if \var{year} is a leap year. +Returns true if \var{year} is a leap year. \end{funcdesc} \begin{funcdesc}{leapdays}{year1, year2} @@ -48,9 +48,14 @@ 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} +An unrelated but handy function that takes a time tuple such as +returned by the \function{gmtime()} function in the \refmodule{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. +\function{time.gmtime()} and \function{timegm()} are each others' inverse. \end{funcdesc} + + +\begin{seealso} + \seemodule{time}{Low-level time related functions.} +\end{seealso} |