I have a java TimeZone object, for example America/Denver
. In theory, the IANA database lists one country code for that TimeZone, namely US
.
In java or Android, how can I get the country for a specified TimeZone object?
UPDATE: Note that I'm not talking about mapping GMT+0700
to a specific country. Obviously, there might be multiple countries that map to a single raw offset. I'm talking about mapping a specific timezone code from https://en.wikipedia.org/wiki/Zone.tab to its associated singular country code.