public class DefaultDateTimeFormatInfo extends 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 |
|---|---|
String[] |
ampms()
Returns array of strings containing abbreviations for Ante Meridiem and
Post Meridiem.
|
String |
dateFormat()
Returns a safe default date format.
|
String |
dateFormatFull()
Returns a "full" date format.
|
String |
dateFormatLong()
Returns a "long" date format.
|
String |
dateFormatMedium()
Returns a "medium" date format.
|
String |
dateFormatShort()
Returns a "short" date format.
|
String |
dateTime(String timePattern,
String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using the locale default joining.
|
String |
dateTimeFull(String timePattern,
String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using "full" joining.
|
String |
dateTimeLong(String timePattern,
String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using "full" joining.
|
String |
dateTimeMedium(String timePattern,
String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using "full" joining.
|
String |
dateTimeShort(String timePattern,
String datePattern)
Returns a date/time format from a date format pattern and a time format
pattern, using "full" joining.
|
String[] |
erasFull()
Returns an array of the full era names.
|
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(). |
String |
formatDay()
Returns localized format equivalent to the "d" skeleton pattern.
|
String |
formatHour12Minute()
Returns localized format equivalent to the "hm" skeleton pattern.
|
String |
formatHour12MinuteSecond()
Returns localized format equivalent to the "hms" skeleton pattern.
|
String |
formatHour24Minute()
Returns localized format equivalent to the "Hm" skeleton pattern.
|
String |
formatHour24MinuteSecond()
Returns localized format equivalent to the "Hms" skeleton pattern.
|
String |
formatMinuteSecond()
Returns localized format equivalent to the "ms" skeleton pattern.
|
String |
formatMonthAbbrev()
Returns localized format equivalent to the "MMM" skeleton pattern.
|
String |
formatMonthAbbrevDay()
Returns localized format equivalent to the "MMMd" skeleton pattern.
|
String |
formatMonthFull()
Returns localized format equivalent to the "MMMM" skeleton pattern.
|
String |
formatMonthFullDay()
Returns localized format equivalent to the "MMMMd" skeleton pattern.
|
String |
formatMonthFullWeekdayDay()
Returns localized format equivalent to the "MMMMEEEEd" skeleton pattern.
|
String |
formatMonthNumDay()
Returns localized format equivalent to the "Md" skeleton pattern.
|
String |
formatYear()
Returns localized format equivalent to the "y" skeleton pattern.
|
String |
formatYearMonthAbbrev()
Returns localized format equivalent to the "yMMM" skeleton pattern.
|
String |
formatYearMonthAbbrevDay()
Returns localized format equivalent to the "yMMMd" skeleton pattern.
|
String |
formatYearMonthFull()
Returns localized format equivalent to the "yMMMM" skeleton pattern.
|
String |
formatYearMonthFullDay()
Returns localized format equivalent to the "yMMMMd" skeleton pattern.
|
String |
formatYearMonthNum()
Returns localized format equivalent to the "yM" skeleton pattern.
|
String |
formatYearMonthNumDay()
Returns localized format equivalent to the "yMd" skeleton pattern.
|
String |
formatYearMonthWeekdayDay()
Returns localized format equivalent to the "yMMMEEEd" skeleton pattern.
|
String |
formatYearQuarterFull()
Returns localized format equivalent to the "yQQQQ" skeleton pattern.
|
String |
formatYearQuarterShort()
Returns localized format equivalent to the "yQ" skeleton pattern.
|
String[] |
monthsFull()
Returns an array of full month names.
|
String[] |
monthsFullStandalone()
Returns an array of month names for use in a stand-alone context.
|
String[] |
monthsNarrow()
Returns an array of the shortest abbreviations for months, typically a
single character and not guaranteed to be unique.
|
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.
|
String[] |
monthsShort()
Returns an array of month abbreviations.
|
String[] |
monthsShortStandalone()
Returns an array of month abbreviations, suitable for use in a stand-alone
context.
|
String[] |
quartersFull()
Returns an array of full quarter names.
|
String[] |
quartersShort()
Returns an array of abbreviations for quarters.
|
String |
timeFormat()
Returns a safe default time format.
|
String |
timeFormatFull()
Returns a "full" time format.
|
String |
timeFormatLong()
Returns a "long" time format.
|
String |
timeFormatMedium()
Returns a "medium" time format.
|
String |
timeFormatShort()
Returns a "short" time format.
|
String[] |
weekdaysFull()
Returns an array of the full names of weekdays.
|
String[] |
weekdaysFullStandalone()
Returns an array of the full names of weekdays, suitable for use in a
stand-alone context.
|
String[] |
weekdaysNarrow()
Returns an array of the shortest abbreviations for weekdays, typically a
single character and not guaranteed to be unique.
|
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.
|
String[] |
weekdaysShort()
Returns an array of abbreviations for weekdays.
|
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 String[] ampms()
DateTimeFormatInfoampms in interface DateTimeFormatInfopublic String dateFormat()
DateTimeFormatInfodateFormat in interface DateTimeFormatInfopublic String dateFormatFull()
DateTimeFormatInfodateFormatFull in interface DateTimeFormatInfopublic String dateFormatLong()
DateTimeFormatInfodateFormatLong in interface DateTimeFormatInfopublic String dateFormatMedium()
DateTimeFormatInfodateFormatMedium in interface DateTimeFormatInfopublic String dateFormatShort()
DateTimeFormatInfodateFormatShort in interface DateTimeFormatInfopublic String dateTime(String timePattern, String datePattern)
DateTimeFormatInfodateTime in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic String dateTimeFull(String timePattern, String datePattern)
DateTimeFormatInfodateTimeFull in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic String dateTimeLong(String timePattern, String datePattern)
DateTimeFormatInfodateTimeLong in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic String dateTimeMedium(String timePattern, String datePattern)
DateTimeFormatInfodateTimeMedium in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic String dateTimeShort(String timePattern, String datePattern)
DateTimeFormatInfodateTimeShort in interface DateTimeFormatInfotimePattern - the time pattern StringdatePattern - the data pattern Stringpublic String[] erasFull()
DateTimeFormatInfoerasFull in interface DateTimeFormatInfopublic String[] erasShort()
DateTimeFormatInfoerasShort in interface DateTimeFormatInfopublic int firstDayOfTheWeek()
DateTimeFormatInfoDateTimeFormatInfo.weekdaysFull().firstDayOfTheWeek in interface DateTimeFormatInfopublic String formatDay()
DateTimeFormatInfoformatDay in interface DateTimeFormatInfopublic String formatHour12Minute()
DateTimeFormatInfoformatHour12Minute in interface DateTimeFormatInfopublic String formatHour12MinuteSecond()
DateTimeFormatInfoformatHour12MinuteSecond in interface DateTimeFormatInfopublic String formatHour24Minute()
DateTimeFormatInfoformatHour24Minute in interface DateTimeFormatInfopublic String formatHour24MinuteSecond()
DateTimeFormatInfoformatHour24MinuteSecond in interface DateTimeFormatInfopublic String formatMinuteSecond()
DateTimeFormatInfoformatMinuteSecond in interface DateTimeFormatInfopublic String formatMonthAbbrev()
DateTimeFormatInfoformatMonthAbbrev in interface DateTimeFormatInfopublic String formatMonthAbbrevDay()
DateTimeFormatInfoformatMonthAbbrevDay in interface DateTimeFormatInfopublic String formatMonthFull()
DateTimeFormatInfoformatMonthFull in interface DateTimeFormatInfopublic String formatMonthFullDay()
DateTimeFormatInfoformatMonthFullDay in interface DateTimeFormatInfopublic String formatMonthFullWeekdayDay()
DateTimeFormatInfoformatMonthFullWeekdayDay in interface DateTimeFormatInfopublic String formatMonthNumDay()
DateTimeFormatInfoformatMonthNumDay in interface DateTimeFormatInfopublic String formatYear()
DateTimeFormatInfoformatYear in interface DateTimeFormatInfopublic String formatYearMonthAbbrev()
DateTimeFormatInfoformatYearMonthAbbrev in interface DateTimeFormatInfopublic String formatYearMonthAbbrevDay()
DateTimeFormatInfoformatYearMonthAbbrevDay in interface DateTimeFormatInfopublic String formatYearMonthFull()
DateTimeFormatInfoformatYearMonthFull in interface DateTimeFormatInfopublic String formatYearMonthFullDay()
DateTimeFormatInfoformatYearMonthFullDay in interface DateTimeFormatInfopublic String formatYearMonthNum()
DateTimeFormatInfoformatYearMonthNum in interface DateTimeFormatInfopublic String formatYearMonthNumDay()
DateTimeFormatInfoformatYearMonthNumDay in interface DateTimeFormatInfopublic String formatYearMonthWeekdayDay()
DateTimeFormatInfoformatYearMonthWeekdayDay in interface DateTimeFormatInfopublic String formatYearQuarterFull()
DateTimeFormatInfoformatYearQuarterFull in interface DateTimeFormatInfopublic String formatYearQuarterShort()
DateTimeFormatInfoformatYearQuarterShort in interface DateTimeFormatInfopublic String[] monthsFull()
DateTimeFormatInfomonthsFull in interface DateTimeFormatInfopublic String[] monthsFullStandalone()
DateTimeFormatInfomonthsFullStandalone in interface DateTimeFormatInfopublic String[] monthsNarrow()
DateTimeFormatInfomonthsNarrow in interface DateTimeFormatInfopublic String[] monthsNarrowStandalone()
DateTimeFormatInfomonthsNarrowStandalone in interface DateTimeFormatInfopublic String[] monthsShort()
DateTimeFormatInfomonthsShort in interface DateTimeFormatInfopublic String[] monthsShortStandalone()
DateTimeFormatInfomonthsShortStandalone in interface DateTimeFormatInfopublic String[] quartersFull()
DateTimeFormatInfoquartersFull in interface DateTimeFormatInfopublic String[] quartersShort()
DateTimeFormatInfoquartersShort in interface DateTimeFormatInfopublic String timeFormat()
DateTimeFormatInfotimeFormat in interface DateTimeFormatInfopublic String timeFormatFull()
DateTimeFormatInfotimeFormatFull in interface DateTimeFormatInfopublic String timeFormatLong()
DateTimeFormatInfotimeFormatLong in interface DateTimeFormatInfopublic String timeFormatMedium()
DateTimeFormatInfotimeFormatMedium in interface DateTimeFormatInfopublic String timeFormatShort()
DateTimeFormatInfotimeFormatShort in interface DateTimeFormatInfopublic String[] weekdaysFull()
DateTimeFormatInfoweekdaysFull in interface DateTimeFormatInfopublic String[] weekdaysFullStandalone()
DateTimeFormatInfoweekdaysFullStandalone in interface DateTimeFormatInfopublic String[] weekdaysNarrow()
DateTimeFormatInfoweekdaysNarrow in interface DateTimeFormatInfopublic String[] weekdaysNarrowStandalone()
DateTimeFormatInfoweekdaysNarrowStandalone in interface DateTimeFormatInfopublic String[] weekdaysShort()
DateTimeFormatInfoweekdaysShort in interface DateTimeFormatInfopublic 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 DateTimeFormatInfoCopyright © 2018. All rights reserved.