Commit 7bf75c9f authored by R David Murray's avatar R David Murray

#18243: Remove obsolete cautionary note from email mktime_tz docs.

parent cce6e719
...@@ -98,12 +98,9 @@ There are several useful utilities provided in the :mod:`email.utils` module: ...@@ -98,12 +98,9 @@ There are several useful utilities provided in the :mod:`email.utils` module:
.. function:: mktime_tz(tuple) .. function:: mktime_tz(tuple)
Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC timestamp. It Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC
the timezone item in the tuple is ``None``, assume local time. Minor timestamp (seconds since the Epoch). If the timezone item in the
deficiency: :func:`mktime_tz` interprets the first 8 elements of *tuple* as a tuple is ``None``, assume local time.
local time and then compensates for the timezone difference. This may yield a
slight error around changes in daylight savings time, though not worth worrying
about for common use.
.. function:: formatdate(timeval=None, localtime=False, usegmt=False) .. function:: formatdate(timeval=None, localtime=False, usegmt=False)
...@@ -210,4 +207,3 @@ There are several useful utilities provided in the :mod:`email.utils` module: ...@@ -210,4 +207,3 @@ There are several useful utilities provided in the :mod:`email.utils` module:
.. [#] Note that the sign of the timezone offset is the opposite of the sign of the .. [#] Note that the sign of the timezone offset is the opposite of the sign of the
``time.timezone`` variable for the same timezone; the latter variable follows ``time.timezone`` variable for the same timezone; the latter variable follows
the POSIX standard while this module follows :rfc:`2822`. the POSIX standard while this module follows :rfc:`2822`.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment