def get_utc_timedelta():
    """Return the UTC offset of local zone at present time as a timedelta."""
    if time.localtime().tm_isdst and time.daylight:
        return datetime.timedelta(hours=time.altzone / 3600)
    else:
        return datetime.timedelta(hours=time.timezone / 3600)
dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/calendar/date.py/get_utc_timedelta/original