summaryrefslogtreecommitdiffstats
path: root/Doc/lib/librfc822.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-19 00:28:58 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-19 00:28:58 (GMT)
commita73033fcc2916a416561bfad384afb900f207a27 (patch)
tree6e2dfb656adf07f2a5909e6aa2cb3687b7b4cf2c /Doc/lib/librfc822.tex
parentce0e17555424a90d6dd3f5ae8f4e586280dc3b44 (diff)
downloadcpython-a73033fcc2916a416561bfad384afb900f207a27.zip
cpython-a73033fcc2916a416561bfad384afb900f207a27.tar.gz
cpython-a73033fcc2916a416561bfad384afb900f207a27.tar.bz2
Feature added by Bill van Melle: when no timezone is present, assume
local time -- that's better than failure.
Diffstat (limited to 'Doc/lib/librfc822.tex')
-rw-r--r--Doc/lib/librfc822.tex4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/lib/librfc822.tex b/Doc/lib/librfc822.tex
index aa7e459..d764ce6 100644
--- a/Doc/lib/librfc822.tex
+++ b/Doc/lib/librfc822.tex
@@ -47,11 +47,13 @@ offset of the date's timezone from UTC (which is the official term
for Greenwich Mean Time). (Note that the sign of the timezone offset
is the opposite of the sign of the \code{time.timezone} variable for
the same timezone; the latter variable follows the \POSIX{} standard
-while this module follows \rfc{822}.)
+while this module follows \rfc{822}.) If the input string has no
+timezone, the last element of the tuple returned is \code{None}.
\end{funcdesc}
\begin{funcdesc}{mktime_tz}{tuple}
Turn a 10-tuple as returned by \code{parsedate_tz()} into a UTC timestamp.
+It the timezone item in the tuple is \code{None}, assume local time.
Minor deficiency: this first interprets the first 8 elements as a
local time and then compensates for the timezone difference;
this may yield a slight error around daylight savings time