email.utils
:杂项实用程序
¶
源代码: Lib/email/utils.py
有提供几个有用实用程序在
email.utils
模块:
- email.utils. localtime ( dt = None ) ¶
-
Return local time as an aware datetime object. If called without arguments, return current time. Otherwise dt argument should be a
datetimeinstance, and it is converted to the local time zone according to the system time zone database. If dt is naive (that is,dt.tzinfoisNone), it is assumed to be in local time. The isdst 参数被忽略。Added in version 3.3.
Deprecated since version 3.12, will be removed in version 3.14: The isdst 参数。