[issue2736] datetime needs an "epoch" method
Alexander Belopolsky
report at bugs.python.org
Fri May 21 18:44:04 CEST 2010
Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:
On Fri, May 21, 2010 at 12:20 PM, Antoine Pitrou <report at bugs.python.org> wrote:
..
> Well, for example, the datetime module encourages you to use "aware" datetime objects (rather than so-called "naive" objects),
> but there isn't a single facility to do so. You must reinvent a whole timezone class from scratch.
This is partially addressed by issue 5094, "datetime lacks concrete
tzinfo impl. for UTC". A more ambitious project would be to add pytz
to stdlib. I believe I've seen this idea discussed and rejected, but
I am not able to find a link to an appropriate thread now. A half-way
project would be to add LocalTimezone given as an example in
http://docs.python.org/dev/py3k/library/datetime.html in addition for
UTC timezone. Any takers?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2736>
_______________________________________
More information about the Python-bugs-list
mailing list