Package com.google.gwt.i18n.shared
Class DefaultDateTimeFormatInfo
java.lang.Object
com.google.gwt.i18n.shared.DefaultDateTimeFormatInfo
- All Implemented Interfaces:
DateTimeFormatInfo
- Direct Known Subclasses:
DefaultDateTimeFormatInfo
Default implementation of DateTimeFormatInfo interface, using values from
the CLDR root locale.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]ampms()Returns array of strings containing abbreviations for Ante Meridiem and Post Meridiem.Returns a safe default date format.Returns a "full" date format.Returns a "long" date format.Returns a "medium" date format.Returns a "short" date format.Returns a date/time format from a date format pattern and a time format pattern, using the locale default joining.dateTimeFull(String timePattern, String datePattern) Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.dateTimeLong(String timePattern, String datePattern) Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.dateTimeMedium(String timePattern, String datePattern) Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.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[]Returns abbreviations of the era names.intReturns the day which generally comes first in a weekly calendar view, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().Returns localized format equivalent to the "d" skeleton pattern.Returns localized format equivalent to the "hm" skeleton pattern.Returns localized format equivalent to the "hms" skeleton pattern.Returns localized format equivalent to the "Hm" skeleton pattern.Returns localized format equivalent to the "Hms" skeleton pattern.Returns localized format equivalent to the "ms" skeleton pattern.Returns localized format equivalent to the "MMM" skeleton pattern.Returns localized format equivalent to the "MMMd" skeleton pattern.Returns localized format equivalent to the "MMMM" skeleton pattern.Returns localized format equivalent to the "MMMMd" skeleton pattern.Returns localized format equivalent to the "MMMMEEEEd" skeleton pattern.Returns localized format equivalent to the "Md" skeleton pattern.Returns localized format equivalent to the "y" skeleton pattern.Returns localized format equivalent to the "yMMM" skeleton pattern.Returns localized format equivalent to the "yMMMd" skeleton pattern.Returns localized format equivalent to the "yMMMM" skeleton pattern.Returns localized format equivalent to the "yMMMMd" skeleton pattern.Returns localized format equivalent to the "yM" skeleton pattern.Returns localized format equivalent to the "yMd" skeleton pattern.Returns localized format equivalent to the "yMMMEEEd" skeleton pattern.Returns localized format equivalent to the "yQQQQ" skeleton pattern.Returns localized format equivalent to the "yQ" skeleton pattern.String[]Returns an array of full month names.String[]Returns an array of month names for use in a stand-alone context.String[]Returns an array of the shortest abbreviations for months, typically a single character and not guaranteed to be unique.String[]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[]Returns an array of month abbreviations.String[]Returns an array of month abbreviations, suitable for use in a stand-alone context.String[]Returns an array of full quarter names.String[]Returns an array of abbreviations for quarters.Returns a safe default time format.Returns a "full" time format.Returns a "long" time format.Returns a "medium" time format.Returns a "short" time format.String[]Returns an array of the full names of weekdays.String[]Returns an array of the full names of weekdays, suitable for use in a stand-alone context.String[]Returns an array of the shortest abbreviations for weekdays, typically a single character and not guaranteed to be unique.String[]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[]Returns an array of abbreviations for weekdays.String[]Returns an array of abbreviations for weekdays, suitable for use in a stand-alone context.intReturns the day which ends the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().intReturns the day which starts the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().
-
Constructor Details
-
DefaultDateTimeFormatInfo
public DefaultDateTimeFormatInfo()
-
-
Method Details
-
ampms
Description copied from interface:DateTimeFormatInfoReturns array of strings containing abbreviations for Ante Meridiem and Post Meridiem.- Specified by:
ampmsin interfaceDateTimeFormatInfo
-
dateFormat
Description copied from interface:DateTimeFormatInfoReturns a safe default date format.- Specified by:
dateFormatin interfaceDateTimeFormatInfo
-
dateFormatFull
Description copied from interface:DateTimeFormatInfoReturns a "full" date format.- Specified by:
dateFormatFullin interfaceDateTimeFormatInfo
-
dateFormatLong
Description copied from interface:DateTimeFormatInfoReturns a "long" date format.- Specified by:
dateFormatLongin interfaceDateTimeFormatInfo
-
dateFormatMedium
Description copied from interface:DateTimeFormatInfoReturns a "medium" date format.- Specified by:
dateFormatMediumin interfaceDateTimeFormatInfo
-
dateFormatShort
Description copied from interface:DateTimeFormatInfoReturns a "short" date format.- Specified by:
dateFormatShortin interfaceDateTimeFormatInfo
-
dateTime
Description copied from interface:DateTimeFormatInfoReturns a date/time format from a date format pattern and a time format pattern, using the locale default joining.- Specified by:
dateTimein interfaceDateTimeFormatInfo- Parameters:
timePattern- the time pattern StringdatePattern- the data pattern String
-
dateTimeFull
Description copied from interface:DateTimeFormatInfoReturns a date/time format from a date format pattern and a time format pattern, using "full" joining.- Specified by:
dateTimeFullin interfaceDateTimeFormatInfo- Parameters:
timePattern- the time pattern StringdatePattern- the data pattern String
-
dateTimeLong
Description copied from interface:DateTimeFormatInfoReturns a date/time format from a date format pattern and a time format pattern, using "full" joining.- Specified by:
dateTimeLongin interfaceDateTimeFormatInfo- Parameters:
timePattern- the time pattern StringdatePattern- the data pattern String
-
dateTimeMedium
Description copied from interface:DateTimeFormatInfoReturns a date/time format from a date format pattern and a time format pattern, using "full" joining.- Specified by:
dateTimeMediumin interfaceDateTimeFormatInfo- Parameters:
timePattern- the time pattern StringdatePattern- the data pattern String
-
dateTimeShort
Description copied from interface:DateTimeFormatInfoReturns a date/time format from a date format pattern and a time format pattern, using "full" joining.- Specified by:
dateTimeShortin interfaceDateTimeFormatInfo- Parameters:
timePattern- the time pattern StringdatePattern- the data pattern String
-
erasFull
Description copied from interface:DateTimeFormatInfoReturns an array of the full era names.- Specified by:
erasFullin interfaceDateTimeFormatInfo
-
erasShort
Description copied from interface:DateTimeFormatInfoReturns abbreviations of the era names.- Specified by:
erasShortin interfaceDateTimeFormatInfo
-
firstDayOfTheWeek
public int firstDayOfTheWeek()Description copied from interface:DateTimeFormatInfoReturns the day which generally comes first in a weekly calendar view, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().- Specified by:
firstDayOfTheWeekin interfaceDateTimeFormatInfo
-
formatDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "d" skeleton pattern.- Specified by:
formatDayin interfaceDateTimeFormatInfo
-
formatHour12Minute
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "hm" skeleton pattern.- Specified by:
formatHour12Minutein interfaceDateTimeFormatInfo
-
formatHour12MinuteSecond
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "hms" skeleton pattern.- Specified by:
formatHour12MinuteSecondin interfaceDateTimeFormatInfo
-
formatHour24Minute
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "Hm" skeleton pattern.- Specified by:
formatHour24Minutein interfaceDateTimeFormatInfo
-
formatHour24MinuteSecond
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "Hms" skeleton pattern.- Specified by:
formatHour24MinuteSecondin interfaceDateTimeFormatInfo
-
formatMinuteSecond
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "ms" skeleton pattern.- Specified by:
formatMinuteSecondin interfaceDateTimeFormatInfo
-
formatMonthAbbrev
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "MMM" skeleton pattern.- Specified by:
formatMonthAbbrevin interfaceDateTimeFormatInfo
-
formatMonthAbbrevDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "MMMd" skeleton pattern.- Specified by:
formatMonthAbbrevDayin interfaceDateTimeFormatInfo
-
formatMonthFull
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "MMMM" skeleton pattern.- Specified by:
formatMonthFullin interfaceDateTimeFormatInfo
-
formatMonthFullDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "MMMMd" skeleton pattern.- Specified by:
formatMonthFullDayin interfaceDateTimeFormatInfo
-
formatMonthFullWeekdayDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "MMMMEEEEd" skeleton pattern.- Specified by:
formatMonthFullWeekdayDayin interfaceDateTimeFormatInfo
-
formatMonthNumDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "Md" skeleton pattern.- Specified by:
formatMonthNumDayin interfaceDateTimeFormatInfo
-
formatYear
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "y" skeleton pattern.- Specified by:
formatYearin interfaceDateTimeFormatInfo
-
formatYearMonthAbbrev
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yMMM" skeleton pattern.- Specified by:
formatYearMonthAbbrevin interfaceDateTimeFormatInfo
-
formatYearMonthAbbrevDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yMMMd" skeleton pattern.- Specified by:
formatYearMonthAbbrevDayin interfaceDateTimeFormatInfo
-
formatYearMonthFull
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yMMMM" skeleton pattern.- Specified by:
formatYearMonthFullin interfaceDateTimeFormatInfo
-
formatYearMonthFullDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yMMMMd" skeleton pattern.- Specified by:
formatYearMonthFullDayin interfaceDateTimeFormatInfo
-
formatYearMonthNum
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yM" skeleton pattern.- Specified by:
formatYearMonthNumin interfaceDateTimeFormatInfo
-
formatYearMonthNumDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yMd" skeleton pattern.- Specified by:
formatYearMonthNumDayin interfaceDateTimeFormatInfo
-
formatYearMonthWeekdayDay
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yMMMEEEd" skeleton pattern.- Specified by:
formatYearMonthWeekdayDayin interfaceDateTimeFormatInfo
-
formatYearQuarterFull
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yQQQQ" skeleton pattern.- Specified by:
formatYearQuarterFullin interfaceDateTimeFormatInfo
-
formatYearQuarterShort
Description copied from interface:DateTimeFormatInfoReturns localized format equivalent to the "yQ" skeleton pattern.- Specified by:
formatYearQuarterShortin interfaceDateTimeFormatInfo
-
monthsFull
Description copied from interface:DateTimeFormatInfoReturns an array of full month names.- Specified by:
monthsFullin interfaceDateTimeFormatInfo
-
monthsFullStandalone
Description copied from interface:DateTimeFormatInfoReturns an array of month names for use in a stand-alone context.- Specified by:
monthsFullStandalonein interfaceDateTimeFormatInfo
-
monthsNarrow
Description copied from interface:DateTimeFormatInfoReturns an array of the shortest abbreviations for months, typically a single character and not guaranteed to be unique.- Specified by:
monthsNarrowin interfaceDateTimeFormatInfo
-
monthsNarrowStandalone
Description copied from interface:DateTimeFormatInfoReturns 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.- Specified by:
monthsNarrowStandalonein interfaceDateTimeFormatInfo
-
monthsShort
Description copied from interface:DateTimeFormatInfoReturns an array of month abbreviations.- Specified by:
monthsShortin interfaceDateTimeFormatInfo
-
monthsShortStandalone
Description copied from interface:DateTimeFormatInfoReturns an array of month abbreviations, suitable for use in a stand-alone context.- Specified by:
monthsShortStandalonein interfaceDateTimeFormatInfo
-
quartersFull
Description copied from interface:DateTimeFormatInfoReturns an array of full quarter names.- Specified by:
quartersFullin interfaceDateTimeFormatInfo
-
quartersShort
Description copied from interface:DateTimeFormatInfoReturns an array of abbreviations for quarters.- Specified by:
quartersShortin interfaceDateTimeFormatInfo
-
timeFormat
Description copied from interface:DateTimeFormatInfoReturns a safe default time format.- Specified by:
timeFormatin interfaceDateTimeFormatInfo
-
timeFormatFull
Description copied from interface:DateTimeFormatInfoReturns a "full" time format.- Specified by:
timeFormatFullin interfaceDateTimeFormatInfo
-
timeFormatLong
Description copied from interface:DateTimeFormatInfoReturns a "long" time format.- Specified by:
timeFormatLongin interfaceDateTimeFormatInfo
-
timeFormatMedium
Description copied from interface:DateTimeFormatInfoReturns a "medium" time format.- Specified by:
timeFormatMediumin interfaceDateTimeFormatInfo
-
timeFormatShort
Description copied from interface:DateTimeFormatInfoReturns a "short" time format.- Specified by:
timeFormatShortin interfaceDateTimeFormatInfo
-
weekdaysFull
Description copied from interface:DateTimeFormatInfoReturns an array of the full names of weekdays.- Specified by:
weekdaysFullin interfaceDateTimeFormatInfo
-
weekdaysFullStandalone
Description copied from interface:DateTimeFormatInfoReturns an array of the full names of weekdays, suitable for use in a stand-alone context.- Specified by:
weekdaysFullStandalonein interfaceDateTimeFormatInfo
-
weekdaysNarrow
Description copied from interface:DateTimeFormatInfoReturns an array of the shortest abbreviations for weekdays, typically a single character and not guaranteed to be unique.- Specified by:
weekdaysNarrowin interfaceDateTimeFormatInfo
-
weekdaysNarrowStandalone
Description copied from interface:DateTimeFormatInfoReturns 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.- Specified by:
weekdaysNarrowStandalonein interfaceDateTimeFormatInfo
-
weekdaysShort
Description copied from interface:DateTimeFormatInfoReturns an array of abbreviations for weekdays.- Specified by:
weekdaysShortin interfaceDateTimeFormatInfo
-
weekdaysShortStandalone
Description copied from interface:DateTimeFormatInfoReturns an array of abbreviations for weekdays, suitable for use in a stand-alone context.- Specified by:
weekdaysShortStandalonein interfaceDateTimeFormatInfo
-
weekendEnd
public int weekendEnd()Description copied from interface:DateTimeFormatInfoReturns the day which ends the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().Note that this value may be numerically less than
DateTimeFormatInfo.weekendStart()- for example,DateTimeFormatInfo.weekendStart()of 6 andDateTimeFormatInfo.weekendEnd()of 0 means Saturday and Sunday are the weekend.- Specified by:
weekendEndin interfaceDateTimeFormatInfo
-
weekendStart
public int weekendStart()Description copied from interface:DateTimeFormatInfoReturns the day which starts the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().- Specified by:
weekendStartin interfaceDateTimeFormatInfo
-