[issue5094] datetime lacks concrete tzinfo impl. for UTC
Alexander Belopolsky
report at bugs.python.org
Thu Jun 3 00:02:12 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Wed, Jun 2, 2010 at 5:24 PM, Brett Cannon <report at bugs.python.org> wrote:
..
> 1. Call it FixedTimezone or something (remember it has to be CapWords).
I thought consistency within module trumps PEP 8 naming standards.
The datetime module (for better or worse) uses lowercase names for its
types: date, time, datetime, tzinfo. Shouldn't the new type follow
the suit? (This will also avoid a source of typos TimeZone vs.
TimeZone).
I don't like "fixed timezone" - it is not clear what it is fixed:
offset, geographical location or historical set of rules. I think we
should promote the notion that timezone is just an offset. EST is -5
hours, EDT is -4. New York uses EST in winter and EDT in summer. A
zoneinfo database (external to python) is a mapping from place and
time to timezone.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5094>
_______________________________________
More information about the Python-bugs-list
mailing list