def utcoffset(time=_time, localtime=_time.localtime):
 if localtime().tm_isdst:
  return (time.altzone // 3600)
 return (time.timezone // 3600)

def utcoffset ( time = _time , localtime = _time . localtime ) : if localtime ( ) . tm_isdst : return ( time . altzone // 3600 ) return ( time . timezone // 3600 )
return the current offset to utc in hours .