summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libcalendar.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-12 05:40:46 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-12 05:40:46 (GMT)
commit1529ef860e32eae4ce5811ff8a7aa95ebbdd014b (patch)
treea662a6fe800058b48eb18a684c286bdcb9e2191f /Doc/lib/libcalendar.tex
parentd077ca1e7c0303af8863bbd65423c23354389353 (diff)
downloadcpython-1529ef860e32eae4ce5811ff8a7aa95ebbdd014b.zip
cpython-1529ef860e32eae4ce5811ff8a7aa95ebbdd014b.tar.gz
cpython-1529ef860e32eae4ce5811ff8a7aa95ebbdd014b.tar.bz2
Document that isleap() returns exactly 1 or 0, which is guaranteed by the
docstring. This closes SF bug #485794. Additional (very) small details were added.
Diffstat (limited to 'Doc/lib/libcalendar.tex')
-rw-r--r--Doc/lib/libcalendar.tex7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/lib/libcalendar.tex b/Doc/lib/libcalendar.tex
index 6dde6dd..7dd9dc6 100644
--- a/Doc/lib/libcalendar.tex
+++ b/Doc/lib/libcalendar.tex
@@ -12,7 +12,8 @@ This module allows you to output calendars like the \UNIX{}
related to the calendar. By default, these calendars have Monday as
the first day of the week, and Sunday as the last (the European
convention). Use \function{setfirstweekday()} to set the first day of the
-week to Sunday (6) or to any other weekday.
+week to Sunday (6) or to any other weekday. Parameters that specify
+dates are given as integers.
\begin{funcdesc}{setfirstweekday}{weekday}
Sets the weekday (\code{0} is Monday, \code{6} is Sunday) to start
@@ -32,12 +33,12 @@ Returns the current setting for the weekday to start each week.
\end{funcdesc}
\begin{funcdesc}{isleap}{year}
-Returns true if \var{year} is a leap year.
+Returns \code{1} if \var{year} is a leap year, otherwise \code{0}.
\end{funcdesc}
\begin{funcdesc}{leapdays}{y1, y2}
Returns the number of leap years in the range
-[\var{y1}\ldots\var{y2}).
+[\var{y1}\ldots\var{y2}), where \var{y1} and \var{y2} are years.
\end{funcdesc}
\begin{funcdesc}{weekday}{year, month, day}