[issue13466] new timezones

Amaury Forgeot d'Arc report at bugs.python.org
Thu Nov 24 11:31:28 CET 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

> > But that does not give the *other* timezone :-(
> Which other timezone ?
I meant the other timezone *name*.

I think we don't understand each other:
- time.timezone is the offset of the local (non-DST) timezone.
- time.altzone is the offset of local DST timezone.
They don't depend on the current date, they depend only on the timezone database.
localtime() only gives the timezone for a given point in time, and the time module needs to present two timezones.

----------

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


More information about the Python-bugs-list mailing list