[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


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}

AltStyle によって変換されたページ (->オリジナル) /