Modifier and Type | Field and Description |
---|---|
static int |
ZONE_ID |
static int |
ZONE_LONGNAME |
static int |
ZONE_LONGNAME_DST |
static int |
ZONE_SHORTNAME |
static int |
ZONE_SHORTNAME_DST |
Constructor and Description |
---|
DateFormatSymbols() |
Modifier and Type | Method and Description |
---|---|
void |
addZoneMapping(String zoneId,
String longName,
String longNameDST,
String shortName,
String shortNameDST)
Adds a timezone mapping so that SimpleDateFormat can recognize abbreviated timezones.
|
Object |
clone() |
String[] |
getAmPmStrings() |
String[] |
getEras() |
String[] |
getMonths() |
Hashtable<String,String> |
getResourceBundle() |
String[] |
getShortMonths() |
String[] |
getShortWeekdays() |
String[] |
getWeekdays() |
String |
getZoneLongName(String zoneId,
String defaultValue)
Gets the long name of a given timezone.
|
String |
getZoneLongNameDST(String zoneId,
String defaultValue)
Gets the long name of a given timezone in daylight saving time.
|
String |
getZoneShortName(String zoneId,
String defaultValue)
Gets the short name of a given timezone.
|
String |
getZoneShortNameDST(String zoneId,
String defaultValue)
Gets the short name of a given timezone in daylight saving time.
|
String[][] |
getZoneStrings() |
boolean |
isLocalized()
Allows turning localization on/off defaults to localization
|
void |
setAmPmStrings(String[] newAmpms) |
void |
setEras(String[] newEras) |
void |
setLocalized(boolean localized)
Allows turning localization on/off defaults to localization
|
void |
setMonths(String[] newMonths) |
void |
setResourceBundle(Hashtable<String,String> newResourceBundle) |
void |
setShortMonths(String[] newShortMonths) |
void |
setShortWeekdays(String[] newShortWeekdays) |
void |
setWeekdays(String[] newWeekdays) |
void |
setZoneStrings(String[][] newZoneStrings) |
public static final int ZONE_ID
public static final int ZONE_LONGNAME
public static final int ZONE_SHORTNAME
public static final int ZONE_LONGNAME_DST
public static final int ZONE_SHORTNAME_DST
public String[] getAmPmStrings()
public void setAmPmStrings(String[] newAmpms)
public String[][] getZoneStrings()
public void setZoneStrings(String[][] newZoneStrings)
public void addZoneMapping(String zoneId, String longName, String longNameDST, String shortName, String shortNameDST)
zoneId
- The TimeZone ID. E.g. America/New_YorklongName
- The long name of the mapping. E.g. Eastern Standard TimelongNameDST
- The long name of the mapping in daylight saving time. E.g. Eastern Daylight TimeshortName
- The short name of the mapping. E.g. ESTshortNameDST
- The short name of the mapping in daylight saving time. E.g. EDTpublic String getZoneShortName(String zoneId, String defaultValue)
zoneId
- The timezone ID. E.g. America/VancouverdefaultValue
- A default value if no mapping is found.public String getZoneShortNameDST(String zoneId, String defaultValue)
zoneId
- The timezone ID. E.g. America/VancouverdefaultValue
- A default value if no mapping is found.public String getZoneLongName(String zoneId, String defaultValue)
zoneId
- The timezone ID. E.g. America/VancouverdefaultValue
- A default value if no mapping is found.public String getZoneLongNameDST(String zoneId, String defaultValue)
zoneId
- The timezone ID. E.g. America/VancouverdefaultValue
- A default value if no mapping is found.public void setShortWeekdays(String[] newShortWeekdays)
public String[] getShortWeekdays()
public String[] getWeekdays()
public void setWeekdays(String[] newWeekdays)
public void setShortMonths(String[] newShortMonths)
public String[] getShortMonths()
public void setMonths(String[] newMonths)
public String[] getMonths()
public String[] getEras()
public void setEras(String[] newEras)
public boolean isLocalized()
public void setLocalized(boolean localized)
localized
- the localized to set