Provides a list of time zones in Java, suitable for displaying in user interfaces. This is a smaller set of time zones than those installed with Java, and is almost identical to the list of time zones provided with Windows.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
TimeZones
CLDR-License.md
LICENSE.md
README.md

README.md

Provides a list of Windows time zones (the zones in the time zone selection dialog in Windows), and their associated Java TimeZone objects. Data was obtained from the CLDR (http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml).

Contains a list of mappings in the following form:

ZONEMAPPINGS.add(new TimeZoneMapping("W. Europe Standard Time", "Europe/Berlin", "(GMT +01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"));
ZONEMAPPINGS.add(new TimeZoneMapping("Pacific Standard Time", "America/Los_Angeles", "(GMT -08:00) Pacific Time (US & Canada)"));

Where the first parameter is the "Windows standard name", the second parameter is the "Olson name" (this is what is used by Java as a time zone's identifier), and the third parameter is the "Windows display name" (this is what is displayed by Windows in the time zone selection dialog).