How would I go about converting a timezone name ("Asia/Dubai", "Europe/Andorra", etc) to a GMT offset in hours (or even seconds, since I can convert it from there).
Most people ask for the reverse, but I need to get a timezone offset from the timezone name provided by GeoNames.