[Python-checkins] python/dist/src/Doc/lib libdatetime.tex,1.20,1.21
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Tue, 31 Dec 2002 08:30:52 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv25360
Modified Files:
libdatetime.tex
Log Message:
Add markup for time object.
Cleanup whitespace.
Fix unbalanced parenthesis.
Index: libdatetime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdatetime.tex,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** libdatetime.tex 31 Dec 2002 16:01:47 -0000 1.20
--- libdatetime.tex 31 Dec 2002 16:30:49 -0000 1.21
***************
*** 185,194 ****
\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}
--- 185,194 ----
\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}
***************
*** 227,236 ****
{(2)}
\lineiii{+\var{t1}}
! {Returns a \class{timedelta} object with the same value.}
! {}
\lineiii{-\var{t1}}
! {equivalent to \class{timedelta}(-\var{t1.days}, -\var{t1.seconds},
! -\var{t1.microseconds}),and to \var{t1}* -1.}
! {(1)(3)}
\lineiii{abs(\var{t})}
{equivalent to +\var{t} when \code{t.days >= 0}, and to -\var{t} when
--- 227,236 ----
{(2)}
\lineiii{+\var{t1}}
! {Returns a \class{timedelta} object with the same value.}
! {}
\lineiii{-\var{t1}}
! {equivalent to \class{timedelta}(-\var{t1.days}, -\var{t1.seconds},
! -\var{t1.microseconds}),and to \var{t1}* -1.}
! {(1)(3)}
\lineiii{abs(\var{t})}
{equivalent to +\var{t} when \code{t.days >= 0}, and to -\var{t} when
***************
*** 251,255 ****
\item[(3)]
! -\var{timedelta.max} is not representable as a \class{timedelta} object).
\end{description}
--- 251,255 ----
\item[(3)]
! -\var{timedelta.max} is not representable as a \class{timedelta} object.
\end{description}
***************
*** 742,762 ****
\subsection{\class{time} Objects \label{datetime-time}}
! A time object represents an idealized time of day, independent of day
! and timezone.
!
! Constructor:
! time(hour=0, minute=0, second=0, microsecond=0)
! All arguments are optional. They may be ints or longs, in the
! following ranges:
! 0 <= hour < 24
! 0 <= minute < 60
! 0 <= second < 60
! 0 <= microsecond < 1000000
! If an argument outside those ranges is given,
! \exception{ValueError} is raised.
Class attributes:
--- 742,763 ----
\subsection{\class{time} Objects \label{datetime-time}}
! A \class{time} object represents an idealized time of day, independent
! of day and timezone.
! \begin{funcdesc}{hour=0, minute=0, second=0, microsecond=0}
! All arguments are optional. They 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:
***************
*** 1424,1428 ****
PyTZInfo_Check(op)
! PyTZInfo_CheckExact(op
Accessor macros:
--- 1425,1429 ----
PyTZInfo_Check(op)
! PyTZInfo_CheckExact(op)
Accessor macros: