[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()
Francesco Del Degan
report at bugs.python.org
Tue Feb 23 10:23:36 CET 2010
Francesco Del Degan <f.deldegan at ngi.it> added the comment:
I attached a patch that implements timegm according to two constraints:
1. If HAVE_TIMEGM is defined, use it
or
2. If HAVE_MKTIME and HAVE_WORKING_TZSET use a portable way, using mktime (taken from timegm(3) man)
Attached patches are for:
r264, r273a1, r311, trunk
What i'm missing just now are the tests (test_time.py) and docs update, if you like the patch, i can continue on that.
----------
Added file: http://bugs.python.org/file16334/timemodule-gmtime-r264.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6280>
_______________________________________
More information about the Python-bugs-list
mailing list