public final class TimeZoneNames extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeZoneNames.ZoneStringsCache |
| Modifier and Type | Field and Description |
|---|---|
static int |
LONG_NAME |
static int |
LONG_NAME_DST |
static int |
NAME_COUNT |
static int |
OLSON_NAME |
static int |
SHORT_NAME |
static int |
SHORT_NAME_DST |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
forLocale(Locale locale)
Returns an array containing the time zone ids in use in the country corresponding to
the given locale.
|
static String |
getDisplayName(String[][] zoneStrings,
String id,
boolean daylight,
int style)
Returns the appropriate string from 'zoneStrings'.
|
static String |
getExemplarLocation(String locale,
String tz) |
static String[][] |
getZoneStrings(Locale locale)
Returns an array of time zone strings, as used by DateFormatSymbols.getZoneStrings.
|
public static final int OLSON_NAME
public static final int LONG_NAME
public static final int SHORT_NAME
public static final int LONG_NAME_DST
public static final int SHORT_NAME_DST
public static final int NAME_COUNT
public static String getDisplayName(String[][] zoneStrings, String id, boolean daylight, int style)
public static String[][] getZoneStrings(Locale locale)
public static String[] forLocale(Locale locale)