[Python-checkins] python/dist/src/Doc/lib libdatetime.tex,1.1,1.2
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Mon, 23 Dec 2002 10:58:08 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv9254
Modified Files:
libdatetime.tex
Log Message:
Lots of markup changes. This is still pretty sad, but passes LaTeX
and is mostly readable.
Index: libdatetime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdatetime.tex,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** libdatetime.tex 18 Dec 2002 14:59:11 -0000 1.1
--- libdatetime.tex 23 Dec 2002 18:58:06 -0000 1.2
***************
*** 1,11 ****
!
! \section{\module{datetime} --
Basic date and time types}
\declaremodule{builtin}{datetime}
\modulesynopsis{Basic date and time types.}
! \moduleauthor{Tim Peters}{tim@zope.com} % XXX check address
\sectionauthor{A.M. Kuchling}{amk@amk.ca}
\newcommand{\naive}{na\"ive}
[...1741 lines suppressed...]
YYYY-MM-DDTHH:MM:SS.mmmmmm+HH:MM
! or, if \member{microsecond} is 0
YYYY-MM-DDTHH:MM:SS+HH:MM
! The optional argument \var{sep} (default \code{'T'}) is a
! one-character separator, placed between the date and time portions
! of the result. For example,
! \begin{verbatim}
! >>> from datetime import *
! >>> class TZ(tzinfo):
! ... def utcoffset(self, dt): return -399
! ...
! >>> datetimetz(2002, 12, 25, tzinfo=TZ()).isoformat(' ')
! '2002-12-25 00:00:00-06:39'
! \end{verbatim}
! \code{str(\var{d})} is equivalent to \code{\var{d}.isoformat(' ')}.