diff options
author | Raymond Hettinger <python@rcn.com> | 2002-12-25 16:37:19 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-12-25 16:37:19 (GMT) |
commit | e11b510a5b35378572aca75dae7e9174756da5da (patch) | |
tree | 56503c8fcfc28cb5a9c4beb7ee6cb6abce16c0a7 /Doc/lib/libcalendar.tex | |
parent | 80475bb4d21d1e5ddbb9eb0042adb1113052b38a (diff) | |
download | cpython-e11b510a5b35378572aca75dae7e9174756da5da.zip cpython-e11b510a5b35378572aca75dae7e9174756da5da.tar.gz cpython-e11b510a5b35378572aca75dae7e9174756da5da.tar.bz2 |
SF 658405: calendar.py to rely on the datetime module instead of the time
module.
The code is shorter, more readable, faster, and dramatically increases the
range of acceptable dates.
Also, used the floor division operator in leapdays().
Diffstat (limited to 'Doc/lib/libcalendar.tex')
-rw-r--r-- | Doc/lib/libcalendar.tex | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/lib/libcalendar.tex b/Doc/lib/libcalendar.tex index 222e2db..bf0c85b 100644 --- a/Doc/lib/libcalendar.tex +++ b/Doc/lib/libcalendar.tex @@ -15,10 +15,12 @@ convention). Use \function{setfirstweekday()} to set the first day of the week to Sunday (6) or to any other weekday. Parameters that specify dates are given as integers. -Most of these functions rely on the platform provided \function{mktime()}. -Therefore, valid argument values may vary from system to system. -On Unix, valid years are typically between \code{1970} and \code{2037}, -but may be work between \code{1902} and \code{2037}. +Most of these functions rely on the \module{datetime} module which +uses an idealized calendar, the current Gregorian calendar indefinitely +extended in both directions. This matches the definition of the +"proleptic Gregorian" calendar in Dershowitz and Reingold's book +"Calendrical Calculations", where it's the base calendar for all +computations. \begin{funcdesc}{setfirstweekday}{weekday} Sets the weekday (\code{0} is Monday, \code{6} is Sunday) to start |