[New-bugs-announce] [issue28157] Document time module constants (timezone, tzname, etc.) as deprecated.

Alexander Belopolsky report at bugs.python.org
Wed Sep 14 15:17:06 EDT 2016


New submission from Alexander Belopolsky:

The time module defines timezone, altzone, tzname and daylight constants that store information about system timezone.  This information is derived  from the timezone rules that are in effect at the module loading time, but may be incorrect for the times in the past.  The documentation should warn the user about this and recommend using the tm_zone and tm_gmtoff attributes in the result of time.localtime() to obtain timezone information.  See #22799 and msg148208.

----------
assignee: belopolsky
components: Documentation
messages: 276478
nosy: belopolsky
priority: normal
severity: normal
stage: needs patch
status: open
title: Document time module constants (timezone, tzname, etc.) as deprecated.
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28157>
_______________________________________


More information about the New-bugs-announce mailing list