PyDocs

Nav

Internet Data Handling

localtime

email.utils

function · Added in 3.3 (source) Deprecated 3.12
  • localtime(dt=None)
Deprecated since 3.12, removed in 3.14. The isdst parameter.
Return local time as an aware datetime object.

If called without arguments, return current time.  Otherwise *dt*
argument should be a 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.
0 Examples
No examples for email.utils/localtime.
See Also
No see-alsos for email.utils/localtime
0 Notes
No notes for localtime