[issue5094] datetime lacks concrete tzinfo impl. for UTC
Alexander Belopolsky
report at bugs.python.org
Wed May 26 01:44:32 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Brett: "[utcnow] should at least get deprecated with a message saying that people should be using ``now(utc)``"
Yes, I believe all utcxxx methods of datetime are a kludge due to the lack of concrete UTC tzinfo:
utcfromtimestamp() -> fromtimestamp(utc)
t.utctimetuple() -> t.replace(tzinfo=utc).timetuple()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5094>
_______________________________________
More information about the Python-bugs-list
mailing list