[Python-checkins] python/dist/src/Doc/lib libdatetime.tex,1.24,1.25

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
2002年12月31日 10:31:52 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv11662
Modified Files:
	libdatetime.tex 
Log Message:
- use classdesc where we can (for better indexing)
- more style consistency crud
Index: libdatetime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdatetime.tex,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** libdatetime.tex	31 Dec 2002 18:13:11 -0000	1.24
--- libdatetime.tex	31 Dec 2002 18:31:48 -0000	1.25
***************
*** 137,142 ****
 between two dates or times.
 
! \begin{funcdesc}{timedelta}{days=0, seconds=0, microseconds=0,
! milliseconds=0, minutes=0, hours=0, weeks=0}
 
 All arguments are optional. Arguments may be ints, longs, or floats,
--- 137,142 ----
 between two dates or times.
 
! \begin{classdesc}{timedelta}{days=0, seconds=0, microseconds=0,
! milliseconds=0, minutes=0, hours=0, weeks=0}
 
 All arguments are optional. Arguments may be ints, longs, or floats,
***************
*** 179,195 ****
 (-1, 86399, 999999)
 \end{verbatim}
! \end{funcdesc}
 
 Class attributes are:
 
! \begin{tableii}{c|l}{code}{Attribute}{Value}
! \lineii{min}{The most negative \class{timedelta} object,
! \code{timedelta(-999999999)}}
! \lineii{max}{The most positive \class{timedelta} object,
! timedelta(days=999999999, hours=23, minutes=59, seconds=59,
! microseconds=999999)}
! \lineii{resolution}{The smallest possible difference between non-equal
! \class{timedelta} objects, \code{timedelta(microseconds=1)}}
! \end{tableii}
 
 Note that, because of normalization, \code{timedelta.max} \textgreater
--- 179,201 ----
 (-1, 86399, 999999)
 \end{verbatim}
! \end{classdesc}
 
 Class attributes are:
 
! \begin{memberdesc}{min}
! The most negative \class{timedelta} object,
! \code{timedelta(-999999999)}.
! \end{memberdesc}
! 
! \begin{memberdesc}{max}
! The most positive \class{timedelta} object,
! \code{timedelta(days=999999999, hours=23, minutes=59, seconds=59,
! microseconds=999999)}.
! \end{memberdesc}
! 
! \begin{memberdesc}{resolution}
! The smallest possible difference between non-equal
! \class{timedelta} objects, \code{timedelta(microseconds=1)}.
! \end{memberdesc}
 
 Note that, because of normalization, \code{timedelta.max} \textgreater
***************
*** 278,282 ****
 proleptic Gregorian ordinals and many other calendar systems.
 
! \begin{funcdesc}{date}{year, month, day}
 All arguments are required. Arguments may be ints or longs, in the
 following ranges:
--- 284,288 ----
 proleptic Gregorian ordinals and many other calendar systems.
 
! \begin{classdesc}{date}{year, month, day}
 All arguments are required. Arguments may be ints or longs, in the
 following ranges:
***************
*** 290,294 ****
 If an argument outside those ranges is given, \exception{ValueError}
 is raised.
! \end{funcdesc}
 
 Other constructors, all class methods:
--- 296,300 ----
 If an argument outside those ranges is given, \exception{ValueError}
 is raised.
! \end{classdesc}
 
 Other constructors, all class methods:
***************
*** 488,493 ****
 day.
 
! \begin{funcdesc}{datetime}{year, month, day,
! hour=0, minute=0, second=0, microsecond=0}
 The year, month and day arguments are required. Arguments may be
 ints or longs, in the following ranges:
--- 494,499 ----
 day.
 
! \begin{classdesc}{datetime}{year, month, day,
! hour=0, minute=0, second=0, microsecond=0}
 The year, month and day arguments are required. Arguments may be
 ints or longs, in the following ranges:
***************
*** 505,509 ****
 If an argument outside those ranges is given, \exception{ValueError}
 is raised.
! \end{funcdesc}
 
 Other constructors, all class methods:
--- 511,515 ----
 If an argument outside those ranges is given, \exception{ValueError}
 is raised.
! \end{classdesc}
 
 Other constructors, all class methods:
***************
*** 753,759 ****
 of day and timezone.
 
! \begin{funcdesc}{time}{hour=0, minute=0, second=0, microsecond=0}
! All arguments are optional. They may be ints or longs, in the
! following ranges:
 
 \begin{itemize}
--- 759,765 ----
 of day and timezone.
 
! \begin{classdesc}{time}{hour=0, minute=0, second=0, microsecond=0}
! All arguments are optional. They may be ints or longs, in the
! following ranges:
 
 \begin{itemize}
***************
*** 764,770 ****
 \end{itemize}
 
! If an argument outside those ranges is given, \exception{ValueError} is
! raised.
! \end{funcdesc}
 
 Class attributes:
--- 770,776 ----
 \end{itemize}
 
! If an argument outside those ranges is given, \exception{ValueError}
! is raised.
! \end{classdesc}
 
 Class attributes:
***************
*** 949,967 ****
 Constructor:
 
! \begin{funcdesc}{time}{hour=0, minute=0, second=0, microsecond=0, tzinfo=None}
 All arguments are optional. \var{tzinfo} may be \code{None}, or
 an instance of a \class{tzinfo} subclass. The remaining arguments
 may be ints or longs, in the following ranges:
 
! \begin{itemize}
! \item \code{0 <= \var{hour} < 24}
! \item \code{0 <= \var{minute} < 60}
! \item \code{0 <= \var{second} < 60}
! \item \code{0 <= \var{microsecond} < 1000000}.
! \end{itemize}
 
 If an argument outside those ranges is given,
 \exception{ValueError} is raised.
! \end{funcdesc}
 
 Class attributes:
--- 955,974 ----
 Constructor:
 
! \begin{classdesc}{time}{hour=0, minute=0, second=0, microsecond=0,
! tzinfo=None}
 All arguments are optional. \var{tzinfo} may be \code{None}, or
 an instance of a \class{tzinfo} subclass. The remaining arguments
 may be ints or longs, in the following ranges:
 
! \begin{itemize}
! \item \code{0 <= \var{hour} < 24}
! \item \code{0 <= \var{minute} < 60}
! \item \code{0 <= \var{second} < 60}
! \item \code{0 <= \var{microsecond} < 1000000}.
! \end{itemize}
 
 If an argument outside those ranges is given,
 \exception{ValueError} is raised.
! \end{classdesc}
 
 Class attributes:
***************
*** 1093,1099 ****
 Constructor:
 
! \begin{funcdesc}{datetimetz}{year, month, day,
! hour=0, minute=0, second=0, microsecond=0,
! tzinfo=None}
 The year, month and day arguments are required. \var{tzinfo} may
 be \code{None}, or an instance of a \class{tzinfo} subclass. The
--- 1100,1106 ----
 Constructor:
 
! \begin{classdesc}{datetimetz}{year, month, day,
! hour=0, minute=0, second=0, microsecond=0,
! tzinfo=None}
 The year, month and day arguments are required. \var{tzinfo} may
 be \code{None}, or an instance of a \class{tzinfo} subclass. The
***************
*** 1112,1116 ****
 If an argument outside those ranges is given,
 \exception{ValueError} is raised.
! \end{funcdesc}
 
 Other constructors (class methods):
--- 1119,1123 ----
 If an argument outside those ranges is given,
 \exception{ValueError} is raised.
! \end{classdesc}
 
 Other constructors (class methods):

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