[issue7662] time.utcoffset()
anatoly techtonik
report at bugs.python.org
Tue Feb 9 15:56:36 CET 2010
anatoly techtonik <techtonik at gmail.com> added the comment:
Updated Python code according to discussion from aforementioned issue #7582. Unfortunately, I can't find Python source for `time` module to make a proper patch out of it.
def time.utcoffset():
"""Return current UTC offset in seconds"""
isdst = time.localtime().tm_isdst
if (time.daylight and isdst):
return -time.altzone
else:
return -time.timezone
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7662>
_______________________________________
More information about the Python-bugs-list
mailing list