Name

DateFormatSymbols

Synopsis

This class defines accessor methods for the various pieces of data, such as names of months and days, used by SimpleDateFormat to format and parse dates and times. You do not typically need to use this class unless you are formatting dates for an unsupported locale or in some highly customized way.

java.text.DateFormatSymbols

Figure 15-8. java.text.DateFormatSymbols

public class DateFormatSymbols implements Cloneable, Serializable {
// Public Constructors
     public DateFormatSymbols( );  
     public DateFormatSymbols(java.util.Locale locale);  
// Public Instance Methods
     public String[ ] getAmPmStrings( );  
     public String[ ] getEras( );  
     public String getLocalPatternChars( );  
     public String[ ] getMonths( );  
     public String[ ] getShortMonths( );  
     public String[ ] getShortWeekdays( );  
     public String[ ] getWeekdays( );  
     public String[ ][ ] getZoneStrings( );  
     public void setAmPmStrings(String[ ] newAmpms);  
     public void setEras(String[ ] newEras);  
     public void setLocalPatternChars(String newLocalPatternChars);  
     public void setMonths(String[ ] newMonths);  
     public void setShortMonths(String[ ] newShortMonths);  
     public void setShortWeekdays(String[ ] newShortWeekdays);  
     public void setWeekdays(String[ ] newWeekdays);  
     public void setZoneStrings(String[ ][ ] newZoneStrings);  
// Public Methods Overriding Object
     public Object clone( );  
     public boolean equals(Object obj);  
     public int hashCode( );  
}

Passed To

SimpleDateFormat.{setDateFormatSymbols( ...

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.