summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libdatetime.tex
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-12-27 21:41:32 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-12-27 21:41:32 (GMT)
commit276a8f3b80efda91020a8daa1ad2f15b998083d9 (patch)
treee11447f7c541a2c0140c6f56cb490d26bdff63b7 /Doc/lib/libdatetime.tex
parent56b3184e89560c2bbaed40239dc8ac16f50828c8 (diff)
downloadcpython-276a8f3b80efda91020a8daa1ad2f15b998083d9.zip
cpython-276a8f3b80efda91020a8daa1ad2f15b998083d9.tar.gz
cpython-276a8f3b80efda91020a8daa1ad2f15b998083d9.tar.bz2
astimezone(): document that None is an OK argument.
Diffstat (limited to 'Doc/lib/libdatetime.tex')
-rw-r--r--Doc/lib/libdatetime.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/lib/libdatetime.tex b/Doc/lib/libdatetime.tex
index 32c0f93..1a2e2d6 100644
--- a/Doc/lib/libdatetime.tex
+++ b/Doc/lib/libdatetime.tex
@@ -603,8 +603,8 @@ Instance methods:
- 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.
+ with \member{tzinfo} member \var{tz}. \var{tz} must be \code{None},
+ or an instance of a \class{tzinfo} subclass.
- timetuple()
Return a 9-element tuple of the form returned by
@@ -1096,8 +1096,9 @@ Instance methods:
- 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},
+ 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
without any conversion of date or time fields. If self is aware and