mirror of
https://github.com/python/cpython.git
synced 2025-10-22 22:53:06 +00:00
gh-72346: Added isdst deprecation warning to email.utils.localtime (GH-91450)
This commit is contained in:
parent
40d4f15793
commit
5e6661bce9
5 changed files with 33 additions and 44 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue