gh-72346: Added isdst deprecation warning to email.utils.localtime (GH-91450)

This commit is contained in:
Alan Williams 2023-03-19 19:20:20 -05:00 committed by GitHub
parent 40d4f15793
commit 5e6661bce9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 44 deletions

View file

@ -13,19 +13,17 @@ module:
.. function:: localtime(dt=None)
Return local time as an aware datetime object. If called without
arguments, return current time. Otherwise *dt* argument should be a
:class:`~datetime.datetime` instance, and it is converted to the local time
zone according to the system time zone database. If *dt* is naive (that
is, ``dt.tzinfo`` is ``None``), it is assumed to be in local time. In this
case, a positive or zero value for *isdst* causes ``localtime`` to presume
initially that summer time (for example, Daylight Saving Time) is or is not
(respectively) in effect for the specified time. A negative value for
*isdst* causes the ``localtime`` to attempt to divine whether summer time
is in effect for the specified time.
Return local time as an aware datetime object. If called without
arguments, return current time. Otherwise *dt* argument should be a
:class:`~datetime.datetime` instance, and it is converted to the local time
zone according to the system time zone database. If *dt* is naive (that
is, ``dt.tzinfo`` is ``None``), it is assumed to be in local time. The
*isdst* parameter is ignored.
.. versionadded:: 3.3
.. versionadded:: 3.3
.. deprecated-removed:: 3.12 3.14
The *isdst* parameter.
.. function:: make_msgid(idstring=None, domain=None)