[Python-checkins] python/dist/src/Doc/lib libdatetime.tex,1.9,1.10

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Fri, 27 Dec 2002 13:41:34 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv14621/python/Doc/lib

Modified Files:
	libdatetime.tex 
Log Message:
astimezone():  document that None is an OK argument.


Index: libdatetime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdatetime.tex,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** libdatetime.tex	27 Dec 2002 00:41:11 -0000	1.9
--- libdatetime.tex	27 Dec 2002 21:41:32 -0000	1.10
***************
*** 604,609 ****
    - astimezone(tz)
      Return a \class{datetimetz} with the same date and time fields, and
!     with \member{tzinfo} member \var{tz}.  \var{tz} must be an instance
!     of a \class{tzinfo} subclass.
  
    - timetuple()
--- 604,609 ----
    - astimezone(tz)
      Return a \class{datetimetz} with the same date and time fields, and
!     with \member{tzinfo} member \var{tz}.  \var{tz} must be \code{None},
!     or an instance of a \class{tzinfo} subclass.
  
    - timetuple()
***************
*** 1097,1102 ****
    - astimezone(tz)
      Return a \class{datetimetz} with new tzinfo member \var{tz}.  \var{tz}
!     must be an instance of a \class{tzinfo} subclass.  If self is naive, or
!     if \code(tz.utcoffset(self)} returns \code{None},
      \code{self.astimezone(tz)} is equivalent to
      \code{self.replace(tzinfo=tz)}:  a new timezone object is attached
--- 1097,1103 ----
    - astimezone(tz)
      Return a \class{datetimetz} with new tzinfo member \var{tz}.  \var{tz}
!     must be \code{None}, or an instance of a \class{tzinfo} subclass.  If
!     \var{tz} is \code{None}, self is naive, or
!     \code(tz.utcoffset(self)} returns \code{None},
      \code{self.astimezone(tz)} is equivalent to
      \code{self.replace(tzinfo=tz)}:  a new timezone object is attached