convert a timezone offset to a numerical value