[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

Alexander Belopolsky report at bugs.python.org
Mon Jun 14 19:43:50 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Committed issue6280-calendar.diff in r81988.  I believe tests should be merged in 2.7.  Any objections?

As for the original RFE, I think it should be rejected.  I believe users should be encouraged to use datetime objects instead of timetuples and converting a UTC datetime to any kind of "since epoch" timestamp is very simple using datetime module arithmetics.

----------
versions: +Python 2.7

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


More information about the Python-bugs-list mailing list