GeezerVison is showing docs.oracle.com — DateFormatSymbols (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact1, compact2, compact3
java.text
Class DateFormatSymbols
-
-
Constructor Summary
Constructors
| Constructor |
Description |
DateFormatSymbols() |
Construct a DateFormatSymbols object by loading format data from
resources for the default FORMAT
locale.
|
DateFormatSymbols(Locale locale) |
Construct a DateFormatSymbols object by loading format data from
resources for the given locale.
|
-
-
Method Detail
-
setMonths
public void setMonths(String[] newMonths)
Sets month strings. For example: "January", "February", etc.
- Parameters:
newMonths - the new month strings.
-
setShortMonths
public void setShortMonths(String[] newShortMonths)
Sets short month strings. For example: "Jan", "Feb", etc.
- Parameters:
newShortMonths - the new short month strings.
-
getWeekdays
public String[] getWeekdays()
Gets weekday strings. For example: "Sunday", "Monday", etc.
- Returns:
- the weekday strings. Use
Calendar.SUNDAY,
Calendar.MONDAY, etc. to index the result array.
-
setWeekdays
public void setWeekdays(String[] newWeekdays)
Sets weekday strings. For example: "Sunday", "Monday", etc.
- Parameters:
newWeekdays - the new weekday strings. The array should
be indexed by Calendar.SUNDAY,
Calendar.MONDAY, etc.
-
getShortWeekdays
public String[] getShortWeekdays()
Gets short weekday strings. For example: "Sun", "Mon", etc.
- Returns:
- the short weekday strings. Use
Calendar.SUNDAY,
Calendar.MONDAY, etc. to index the result array.
-
setShortWeekdays
public void setShortWeekdays(String[] newShortWeekdays)
Sets short weekday strings. For example: "Sun", "Mon", etc.
- Parameters:
newShortWeekdays - the new short weekday strings. The array should
be indexed by Calendar.SUNDAY,
Calendar.MONDAY, etc.
-
getLocalPatternChars
public String getLocalPatternChars()
Gets localized date-time pattern characters. For example: 'u', 't', etc.
- Returns:
- the localized date-time pattern characters.
-
setLocalPatternChars
public void setLocalPatternChars(String newLocalPatternChars)
Sets localized date-time pattern characters. For example: 'u', 't', etc.
- Parameters:
newLocalPatternChars - the new localized date-time
pattern characters.
-
clone
public Object clone()
Overrides Cloneable
- Overrides:
clone in class Object
- Returns:
- a clone of this instance.
- See Also:
Cloneable
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|