Having country-state code as input, is it possible to get the timezone using Java? For example us-tx -> (GMT-6)
us-tx -> (GMT-6)
Tried using this answer, however this
This isn't possible - in any language. Many US states have more than one time zone, depending on which part of the state you are referring to:
From Wikipedia:
You can clearly see on this map, many states where the time zone boundary does not follow the state boundary.