call the function timedelta with an argument seconds as negative time.timezone, subtract the result from the result of the call,
return timedelta ( seconds = - time . altzone ) - timedelta ( seconds = - time . timezone )