public class DefaultDateTimeFormatInfo extends java.lang.Object implements DateTimeFormatInfo
Users who need to create their own DateTimeFormatInfo implementation are encouraged to extend this class so their implementation won't break when new methods are added.
| Constructor and Description |
|---|
DefaultDateTimeFormatInfo() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
ampms()
Returns array of strings containing abbreviations for Ante Meridiem and
Post Meridiem.
|
java.lang.String |
dateFormat()
Returns a safe default date format.
|
java.lang.String |
dateFormatFull()
Returns a "full" date format.
|
java.lang.String |
dateFormatLong()
Returns a "long" date format.
|
java.lang.String |
dateFormatMedium()
Returns a "medium" date format.
|
java.lang.String |
dateFormatShort()
Returns a "short" date format.
|
java.lang.String |
dateTime(java.lang.String timePattern,
java.lang.String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using the locale default joining.
|
java.lang.String |
dateTimeFull(java.lang.String timePattern,
java.lang.String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using "full" joining.
|
java.lang.String |
dateTimeLong(java.lang.String timePattern,
java.lang.String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using "full" joining.
|
java.lang.String |
dateTimeMedium(java.lang.String timePattern,
java.lang.String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using "full" joining.
|
java.lang.String |
dateTimeShort(java.lang.String timePattern,
java.lang.String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using "full" joining.
|
java.lang.String[] |
erasFull()
Returns an array of the full era names.
|
java.lang.String[] |
erasShort()
Returns abbreviations of the era names.
|
int |
firstDayOfTheWeek()
Returns the day which generally comes first in a weekly calendar view, as
an index into the return value of
DateTimeFormatInfo.weekdaysFull(). |
java.lang.String |
formatDay()
Returns localized format equivalent to the "d" skeleton pattern.
|
java.lang.String |
formatHour12Minute()
Returns localized format equivalent to the "hm" skeleton pattern.
|
java.lang.String |
formatHour12MinuteSecond()
Returns localized format equivalent to the "hms" skeleton pattern.
|
java.lang.String |
formatHour24Minute()
Returns localized format equivalent to the "Hm" skeleton pattern.
|
java.lang.String |
formatHour24MinuteSecond()
Returns localized format equivalent to the "Hms" skeleton pattern.
|
java.lang.String |
formatMinuteSecond()
Returns localized format equivalent to the "ms" skeleton pattern.
|
java.lang.String |
formatMonthAbbrev()
Returns localized format equivalent to the "MMM" skeleton pattern.
|
java.lang.String |
formatMonthAbbrevDay()
Returns localized format equivalent to the "MMMd" skeleton pattern.
|
java.lang.String |
formatMonthFull()
Returns localized format equivalent to the "MMMM" skeleton pattern.
|
java.lang.String |
formatMonthFullDay()
Returns localized format equivalent to the "MMMMd" skeleton pattern.
|
java.lang.String |
formatMonthFullWeekdayDay()
Returns localized format equivalent to the "MMMMEEEEd" skeleton pattern.
|
java.lang.String |
formatMonthNumDay()
Returns localized format equivalent to the "Md" skeleton pattern.
|
java.lang.String |
formatYear()
Returns localized format equivalent to the "y" skeleton pattern.
|
java.lang.String |
formatYearMonthAbbrev()
Returns localized format equivalent to the "yMMM" skeleton pattern.
|
java.lang.String |
formatYearMonthAbbrevDay()
Returns localized format equivalent to the "yMMMd" skeleton pattern.
|
java.lang.String |
formatYearMonthFull()
Returns localized format equivalent to the "yMMMM" skeleton pattern.
|
java.lang.String |
formatYearMonthFullDay()
Returns localized format equivalent to the "yMMMMd" skeleton pattern.
|
java.lang.String |
formatYearMonthNum()
Returns localized format equivalent to the "yM" skeleton pattern.
|
java.lang.String |
formatYearMonthNumDay()
Returns localized format equivalent to the "yMd" skeleton pattern.
|
java.lang.String |
formatYearMonthWeekdayDay()
Returns localized format equivalent to the "yMMMEEEd" skeleton pattern.
|
java.lang.String |
formatYearQuarterFull()
Returns localized format equivalent to the "yQQQQ" skeleton pattern.
|
java.lang.String |
formatYearQuarterShort()
Returns localized format equivalent to the "yQ" skeleton pattern.
|
java.lang.String[] |
monthsFull()
Returns an array of full month names.
|
java.lang.String[] |
monthsFullStandalone()
Returns an array of month names for use in a stand-alone context.
|
java.lang.String[] |
monthsNarrow()
Returns an array of the shortest abbreviations for months, typically a
single character and not guaranteed to be unique.
|
java.lang.String[] |
monthsNarrowStandalone()
Returns an array of the shortest abbreviations for months suitable for use
in a stand-alone context, typically a single character and not guaranteed
to be unique.
|
java.lang.String[] |
monthsShort()
Returns an array of month abbreviations.
|
java.lang.String[] |
monthsShortStandalone()
Returns an array of month abbreviations, suitable for use in a stand-alone
context.
|
java.lang.String[] |
quartersFull()
Returns an array of full quarter names.
|
java.lang.String[] |
quartersShort()
Returns an array of abbreviations for quarters.
|
java.lang.String |
timeFormat()
Returns a safe default time format.
|
java.lang.String |
timeFormatFull()
Returns a "full" time format.
|
java.lang.String |
timeFormatLong()
Returns a "long" time format.
|
java.lang.String |
timeFormatMedium()
Returns a "medium" time format.
|
java.lang.String |
timeFormatShort()
Returns a "short" time format.
|
java.lang.String[] |
weekdaysFull()
Returns an array of the full names of weekdays.
|
java.lang.String[] |
weekdaysFullStandalone()
Returns an array of the full names of weekdays, suitable for use in a
stand-alone context.
|
java.lang.String[] |
weekdaysNarrow()
Returns an array of the shortest abbreviations for weekdays, typically a
single character and not guaranteed to be unique.
|
java.lang.String[] |
weekdaysNarrowStandalone()
Returns an array of the shortest abbreviations for weekdays suitable for
use in a stand-alone context, typically a single character and not
guaranteed to be unique.
|
java.lang.String[] |
weekdaysShort()
Returns an array of abbreviations for weekdays.
|
java.lang.String[] |
weekdaysShortStandalone()
Returns an array of abbreviations for weekdays, suitable for use in a
stand-alone context.
|
int |
weekendEnd()
Returns the day which ends the weekend, as an index into the return value
of
DateTimeFormatInfo.weekdaysFull(). |
int |
weekendStart()
Returns the day which starts the weekend, as an index into the return value
of
DateTimeFormatInfo.weekdaysFull(). |
public java.lang.String[] ampms()
DateTimeFormatInfoampms in interface DateTimeFormatInfopublic java.lang.String dateFormat()
DateTimeFormatInfodateFormat in interface DateTimeFormatInfopublic java.lang.String dateFormatFull()
DateTimeFormatInfodateFormatFull in interface DateTimeFormatInfopublic java.lang.String dateFormatLong()
DateTimeFormatInfodateFormatLong in interface DateTimeFormatInfopublic java.lang.String dateFormatMedium()
DateTimeFormatInfodateFormatMedium in interface DateTimeFormatInfopublic java.lang.String dateFormatShort()
DateTimeFormatInfodateFormatShort in interface DateTimeFormatInfopublic java.lang.String dateTime(java.lang.String timePattern,
java.lang.String datePattern)
DateTimeFormatInfodateTime in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic java.lang.String dateTimeFull(java.lang.String timePattern,
java.lang.String datePattern)
DateTimeFormatInfodateTimeFull in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic java.lang.String dateTimeLong(java.lang.String timePattern,
java.lang.String datePattern)
DateTimeFormatInfodateTimeLong in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic java.lang.String dateTimeMedium(java.lang.String timePattern,
java.lang.String datePattern)
DateTimeFormatInfodateTimeMedium in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic java.lang.String dateTimeShort(java.lang.String timePattern,
java.lang.String datePattern)
DateTimeFormatInfodateTimeShort in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic java.lang.String[] erasFull()
DateTimeFormatInfoerasFull in interface DateTimeFormatInfopublic java.lang.String[] erasShort()
DateTimeFormatInfoerasShort in interface DateTimeFormatInfopublic int firstDayOfTheWeek()
DateTimeFormatInfoDateTimeFormatInfo.weekdaysFull().firstDayOfTheWeek in interface DateTimeFormatInfopublic java.lang.String formatDay()
DateTimeFormatInfoformatDay in interface DateTimeFormatInfopublic java.lang.String formatHour12Minute()
DateTimeFormatInfoformatHour12Minute in interface DateTimeFormatInfopublic java.lang.String formatHour12MinuteSecond()
DateTimeFormatInfoformatHour12MinuteSecond in interface DateTimeFormatInfopublic java.lang.String formatHour24Minute()
DateTimeFormatInfoformatHour24Minute in interface DateTimeFormatInfopublic java.lang.String formatHour24MinuteSecond()
DateTimeFormatInfoformatHour24MinuteSecond in interface DateTimeFormatInfopublic java.lang.String formatMinuteSecond()
DateTimeFormatInfoformatMinuteSecond in interface DateTimeFormatInfopublic java.lang.String formatMonthAbbrev()
DateTimeFormatInfoformatMonthAbbrev in interface DateTimeFormatInfopublic java.lang.String formatMonthAbbrevDay()
DateTimeFormatInfoformatMonthAbbrevDay in interface DateTimeFormatInfopublic java.lang.String formatMonthFull()
DateTimeFormatInfoformatMonthFull in interface DateTimeFormatInfopublic java.lang.String formatMonthFullDay()
DateTimeFormatInfoformatMonthFullDay in interface DateTimeFormatInfopublic java.lang.String formatMonthFullWeekdayDay()
DateTimeFormatInfoformatMonthFullWeekdayDay in interface DateTimeFormatInfopublic java.lang.String formatMonthNumDay()
DateTimeFormatInfoformatMonthNumDay in interface DateTimeFormatInfopublic java.lang.String formatYear()
DateTimeFormatInfoformatYear in interface DateTimeFormatInfopublic java.lang.String formatYearMonthAbbrev()
DateTimeFormatInfoformatYearMonthAbbrev in interface DateTimeFormatInfopublic java.lang.String formatYearMonthAbbrevDay()
DateTimeFormatInfoformatYearMonthAbbrevDay in interface DateTimeFormatInfopublic java.lang.String formatYearMonthFull()
DateTimeFormatInfoformatYearMonthFull in interface DateTimeFormatInfopublic java.lang.String formatYearMonthFullDay()
DateTimeFormatInfoformatYearMonthFullDay in interface DateTimeFormatInfopublic java.lang.String formatYearMonthNum()
DateTimeFormatInfoformatYearMonthNum in interface DateTimeFormatInfopublic java.lang.String formatYearMonthNumDay()
DateTimeFormatInfoformatYearMonthNumDay in interface DateTimeFormatInfopublic java.lang.String formatYearMonthWeekdayDay()
DateTimeFormatInfoformatYearMonthWeekdayDay in interface DateTimeFormatInfopublic java.lang.String formatYearQuarterFull()
DateTimeFormatInfoformatYearQuarterFull in interface DateTimeFormatInfopublic java.lang.String formatYearQuarterShort()
DateTimeFormatInfoformatYearQuarterShort in interface DateTimeFormatInfopublic java.lang.String[] monthsFull()
DateTimeFormatInfomonthsFull in interface DateTimeFormatInfopublic java.lang.String[] monthsFullStandalone()
DateTimeFormatInfomonthsFullStandalone in interface DateTimeFormatInfopublic java.lang.String[] monthsNarrow()
DateTimeFormatInfomonthsNarrow in interface DateTimeFormatInfopublic java.lang.String[] monthsNarrowStandalone()
DateTimeFormatInfomonthsNarrowStandalone in interface DateTimeFormatInfopublic java.lang.String[] monthsShort()
DateTimeFormatInfomonthsShort in interface DateTimeFormatInfopublic java.lang.String[] monthsShortStandalone()
DateTimeFormatInfomonthsShortStandalone in interface DateTimeFormatInfopublic java.lang.String[] quartersFull()
DateTimeFormatInfoquartersFull in interface DateTimeFormatInfopublic java.lang.String[] quartersShort()
DateTimeFormatInfoquartersShort in interface DateTimeFormatInfopublic java.lang.String timeFormat()
DateTimeFormatInfotimeFormat in interface DateTimeFormatInfopublic java.lang.String timeFormatFull()
DateTimeFormatInfotimeFormatFull in interface DateTimeFormatInfopublic java.lang.String timeFormatLong()
DateTimeFormatInfotimeFormatLong in interface DateTimeFormatInfopublic java.lang.String timeFormatMedium()
DateTimeFormatInfotimeFormatMedium in interface DateTimeFormatInfopublic java.lang.String timeFormatShort()
DateTimeFormatInfotimeFormatShort in interface DateTimeFormatInfopublic java.lang.String[] weekdaysFull()
DateTimeFormatInfoweekdaysFull in interface DateTimeFormatInfopublic java.lang.String[] weekdaysFullStandalone()
DateTimeFormatInfoweekdaysFullStandalone in interface DateTimeFormatInfopublic java.lang.String[] weekdaysNarrow()
DateTimeFormatInfoweekdaysNarrow in interface DateTimeFormatInfopublic java.lang.String[] weekdaysNarrowStandalone()
DateTimeFormatInfoweekdaysNarrowStandalone in interface DateTimeFormatInfopublic java.lang.String[] weekdaysShort()
DateTimeFormatInfoweekdaysShort in interface DateTimeFormatInfopublic java.lang.String[] weekdaysShortStandalone()
DateTimeFormatInfoweekdaysShortStandalone in interface DateTimeFormatInfopublic int weekendEnd()
DateTimeFormatInfoDateTimeFormatInfo.weekdaysFull().
Note that this value may be numerically less than
DateTimeFormatInfo.weekendStart() - for example, DateTimeFormatInfo.weekendStart() of 6 and
DateTimeFormatInfo.weekendEnd() of 0 means Saturday and Sunday are the weekend.
weekendEnd in interface DateTimeFormatInfopublic int weekendStart()
DateTimeFormatInfoDateTimeFormatInfo.weekdaysFull().weekendStart in interface DateTimeFormatInfo