[Python-checkins] python/dist/src/Doc/lib libcalendar.tex,1.16,1.17
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
2002年12月25日 08:37:21 -0800
- Previous message: [Python-checkins] python/dist/src/Lib calendar.py,1.30,1.31
- Next message: [Python-checkins] python/nondist/sandbox/datetime US.py,1.1,1.2 datetime.py,1.124,1.125 picklesize.py,1.1,1.2 test_datetime.py,1.81,1.82
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv24875/Doc/lib
Modified Files:
libcalendar.tex
Log Message:
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().
Index: libcalendar.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcalendar.tex,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** libcalendar.tex 3 Nov 2002 00:13:42 -0000 1.16
--- libcalendar.tex 25 Dec 2002 16:37:19 -0000 1.17
***************
*** 16,23 ****
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}.
\begin{funcdesc}{setfirstweekday}{weekday}
--- 16,25 ----
dates are given as integers.
! 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}
- Previous message: [Python-checkins] python/dist/src/Lib calendar.py,1.30,1.31
- Next message: [Python-checkins] python/nondist/sandbox/datetime US.py,1.1,1.2 datetime.py,1.124,1.125 picklesize.py,1.1,1.2 test_datetime.py,1.81,1.82
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]