[issue14083] Use local timezone offset by default in datetime.timezone

2012-02-21 Thread Nick Coghlan
Changes by Nick Coghlan : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue14083] Use local timezone offset by default in datetime.timezone

2012-02-21 Thread Nick Coghlan
Nick Coghlan added the comment: Marking as a duplicate of #9527. If that API is added, the local fixed offset timezone will be accessible as datetime.datetime.localtime().tzinfo which would be simple enough. -- resolution: -> duplicate superseder: -> Add aware local time support to

[issue14083] Use local timezone offset by default in datetime.timezone

2012-02-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The problem with this idea is that while evaluating datetime.datetime.now(datetime.timezone()), python will have to query the real time clock twice (first in timezone() and then in now()). At a particularly unfortunate time this may result in an error.

[issue14083] Use local timezone offset by default in datetime.timezone

2012-02-21 Thread Nick Coghlan
New submission from Nick Coghlan : Currently, datetime.timezone requires that the offset be specified explicitly. It would be more convenient if the local offset was used by default. Since the time module already exposes the offset details for the local timezone, this would just make: local