Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd41f24

Browse files
committed
Merge: #18243: Remove obsolete cautionary note from email mktime_tz docs.
2 parents 4453cf5 + ae25f46 commit dd41f24

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

Doc/library/email.util.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,9 @@ There are several useful utilities provided in the :mod:`email.utils` module:
9898

9999
.. function:: mktime_tz(tuple)
100100

101-
Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC timestamp. It
102-
the timezone item in the tuple is ``None``, assume local time. Minor
103-
deficiency: :func:`mktime_tz` interprets the first 8 elements of *tuple* as a
104-
local time and then compensates for the timezone difference. This may yield a
105-
slight error around changes in daylight savings time, though not worth worrying
106-
about for common use.
101+
Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC
102+
timestamp (seconds since the Epoch). If the timezone item in the
103+
tuple is ``None``, assume local time.
107104

108105

109106
.. function:: formatdate(timeval=None, localtime=False, usegmt=False)
@@ -210,4 +207,3 @@ There are several useful utilities provided in the :mod:`email.utils` module:
210207
.. [#] Note that the sign of the timezone offset is the opposite of the sign of the
211208
``time.timezone`` variable for the same timezone; the latter variable follows
212209
the POSIX standard while this module follows :rfc:`2822`.
213-

0 commit comments

Comments
 (0)