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
-
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.int
Returns 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.int
Returns the day which ends the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.int
Returns 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:DateTimeFormatInfo
Returns array of strings containing abbreviations for Ante Meridiem and Post Meridiem.- Specified by:
ampms
in interfaceDateTimeFormatInfo
-
dateFormat
Description copied from interface:DateTimeFormatInfo
Returns a safe default date format.- Specified by:
dateFormat
in interfaceDateTimeFormatInfo
-
dateFormatFull
Description copied from interface:DateTimeFormatInfo
Returns a "full" date format.- Specified by:
dateFormatFull
in interfaceDateTimeFormatInfo
-
dateFormatLong
Description copied from interface:DateTimeFormatInfo
Returns a "long" date format.- Specified by:
dateFormatLong
in interfaceDateTimeFormatInfo
-
dateFormatMedium
Description copied from interface:DateTimeFormatInfo
Returns a "medium" date format.- Specified by:
dateFormatMedium
in interfaceDateTimeFormatInfo
-
dateFormatShort
Description copied from interface:DateTimeFormatInfo
Returns a "short" date format.- Specified by:
dateFormatShort
in interfaceDateTimeFormatInfo
-
dateTime
Description copied from interface:DateTimeFormatInfo
Returns a date/time format from a date format pattern and a time format pattern, using the locale default joining.- Specified by:
dateTime
in interfaceDateTimeFormatInfo
- Parameters:
timePattern
- the time pattern StringdatePattern
- the data pattern String
-
dateTimeFull
Description copied from interface:DateTimeFormatInfo
Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.- Specified by:
dateTimeFull
in interfaceDateTimeFormatInfo
- Parameters:
timePattern
- the time pattern StringdatePattern
- the data pattern String
-
dateTimeLong
Description copied from interface:DateTimeFormatInfo
Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.- Specified by:
dateTimeLong
in interfaceDateTimeFormatInfo
- Parameters:
timePattern
- the time pattern StringdatePattern
- the data pattern String
-
dateTimeMedium
Description copied from interface:DateTimeFormatInfo
Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.- Specified by:
dateTimeMedium
in interfaceDateTimeFormatInfo
- Parameters:
timePattern
- the time pattern StringdatePattern
- the data pattern String
-
dateTimeShort
Description copied from interface:DateTimeFormatInfo
Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.- Specified by:
dateTimeShort
in interfaceDateTimeFormatInfo
- Parameters:
timePattern
- the time pattern StringdatePattern
- the data pattern String
-
erasFull
Description copied from interface:DateTimeFormatInfo
Returns an array of the full era names.- Specified by:
erasFull
in interfaceDateTimeFormatInfo
-
erasShort
Description copied from interface:DateTimeFormatInfo
Returns abbreviations of the era names.- Specified by:
erasShort
in interfaceDateTimeFormatInfo
-
firstDayOfTheWeek
public int firstDayOfTheWeek()Description copied from interface:DateTimeFormatInfo
Returns the day which generally comes first in a weekly calendar view, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.- Specified by:
firstDayOfTheWeek
in interfaceDateTimeFormatInfo
-
formatDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "d" skeleton pattern.- Specified by:
formatDay
in interfaceDateTimeFormatInfo
-
formatHour12Minute
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "hm" skeleton pattern.- Specified by:
formatHour12Minute
in interfaceDateTimeFormatInfo
-
formatHour12MinuteSecond
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "hms" skeleton pattern.- Specified by:
formatHour12MinuteSecond
in interfaceDateTimeFormatInfo
-
formatHour24Minute
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "Hm" skeleton pattern.- Specified by:
formatHour24Minute
in interfaceDateTimeFormatInfo
-
formatHour24MinuteSecond
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "Hms" skeleton pattern.- Specified by:
formatHour24MinuteSecond
in interfaceDateTimeFormatInfo
-
formatMinuteSecond
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "ms" skeleton pattern.- Specified by:
formatMinuteSecond
in interfaceDateTimeFormatInfo
-
formatMonthAbbrev
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "MMM" skeleton pattern.- Specified by:
formatMonthAbbrev
in interfaceDateTimeFormatInfo
-
formatMonthAbbrevDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "MMMd" skeleton pattern.- Specified by:
formatMonthAbbrevDay
in interfaceDateTimeFormatInfo
-
formatMonthFull
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "MMMM" skeleton pattern.- Specified by:
formatMonthFull
in interfaceDateTimeFormatInfo
-
formatMonthFullDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "MMMMd" skeleton pattern.- Specified by:
formatMonthFullDay
in interfaceDateTimeFormatInfo
-
formatMonthFullWeekdayDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "MMMMEEEEd" skeleton pattern.- Specified by:
formatMonthFullWeekdayDay
in interfaceDateTimeFormatInfo
-
formatMonthNumDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "Md" skeleton pattern.- Specified by:
formatMonthNumDay
in interfaceDateTimeFormatInfo
-
formatYear
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "y" skeleton pattern.- Specified by:
formatYear
in interfaceDateTimeFormatInfo
-
formatYearMonthAbbrev
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yMMM" skeleton pattern.- Specified by:
formatYearMonthAbbrev
in interfaceDateTimeFormatInfo
-
formatYearMonthAbbrevDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yMMMd" skeleton pattern.- Specified by:
formatYearMonthAbbrevDay
in interfaceDateTimeFormatInfo
-
formatYearMonthFull
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yMMMM" skeleton pattern.- Specified by:
formatYearMonthFull
in interfaceDateTimeFormatInfo
-
formatYearMonthFullDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yMMMMd" skeleton pattern.- Specified by:
formatYearMonthFullDay
in interfaceDateTimeFormatInfo
-
formatYearMonthNum
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yM" skeleton pattern.- Specified by:
formatYearMonthNum
in interfaceDateTimeFormatInfo
-
formatYearMonthNumDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yMd" skeleton pattern.- Specified by:
formatYearMonthNumDay
in interfaceDateTimeFormatInfo
-
formatYearMonthWeekdayDay
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yMMMEEEd" skeleton pattern.- Specified by:
formatYearMonthWeekdayDay
in interfaceDateTimeFormatInfo
-
formatYearQuarterFull
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yQQQQ" skeleton pattern.- Specified by:
formatYearQuarterFull
in interfaceDateTimeFormatInfo
-
formatYearQuarterShort
Description copied from interface:DateTimeFormatInfo
Returns localized format equivalent to the "yQ" skeleton pattern.- Specified by:
formatYearQuarterShort
in interfaceDateTimeFormatInfo
-
monthsFull
Description copied from interface:DateTimeFormatInfo
Returns an array of full month names.- Specified by:
monthsFull
in interfaceDateTimeFormatInfo
-
monthsFullStandalone
Description copied from interface:DateTimeFormatInfo
Returns an array of month names for use in a stand-alone context.- Specified by:
monthsFullStandalone
in interfaceDateTimeFormatInfo
-
monthsNarrow
Description copied from interface:DateTimeFormatInfo
Returns an array of the shortest abbreviations for months, typically a single character and not guaranteed to be unique.- Specified by:
monthsNarrow
in interfaceDateTimeFormatInfo
-
monthsNarrowStandalone
Description copied from interface:DateTimeFormatInfo
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.- Specified by:
monthsNarrowStandalone
in interfaceDateTimeFormatInfo
-
monthsShort
Description copied from interface:DateTimeFormatInfo
Returns an array of month abbreviations.- Specified by:
monthsShort
in interfaceDateTimeFormatInfo
-
monthsShortStandalone
Description copied from interface:DateTimeFormatInfo
Returns an array of month abbreviations, suitable for use in a stand-alone context.- Specified by:
monthsShortStandalone
in interfaceDateTimeFormatInfo
-
quartersFull
Description copied from interface:DateTimeFormatInfo
Returns an array of full quarter names.- Specified by:
quartersFull
in interfaceDateTimeFormatInfo
-
quartersShort
Description copied from interface:DateTimeFormatInfo
Returns an array of abbreviations for quarters.- Specified by:
quartersShort
in interfaceDateTimeFormatInfo
-
timeFormat
Description copied from interface:DateTimeFormatInfo
Returns a safe default time format.- Specified by:
timeFormat
in interfaceDateTimeFormatInfo
-
timeFormatFull
Description copied from interface:DateTimeFormatInfo
Returns a "full" time format.- Specified by:
timeFormatFull
in interfaceDateTimeFormatInfo
-
timeFormatLong
Description copied from interface:DateTimeFormatInfo
Returns a "long" time format.- Specified by:
timeFormatLong
in interfaceDateTimeFormatInfo
-
timeFormatMedium
Description copied from interface:DateTimeFormatInfo
Returns a "medium" time format.- Specified by:
timeFormatMedium
in interfaceDateTimeFormatInfo
-
timeFormatShort
Description copied from interface:DateTimeFormatInfo
Returns a "short" time format.- Specified by:
timeFormatShort
in interfaceDateTimeFormatInfo
-
weekdaysFull
Description copied from interface:DateTimeFormatInfo
Returns an array of the full names of weekdays.- Specified by:
weekdaysFull
in interfaceDateTimeFormatInfo
-
weekdaysFullStandalone
Description copied from interface:DateTimeFormatInfo
Returns an array of the full names of weekdays, suitable for use in a stand-alone context.- Specified by:
weekdaysFullStandalone
in interfaceDateTimeFormatInfo
-
weekdaysNarrow
Description copied from interface:DateTimeFormatInfo
Returns an array of the shortest abbreviations for weekdays, typically a single character and not guaranteed to be unique.- Specified by:
weekdaysNarrow
in interfaceDateTimeFormatInfo
-
weekdaysNarrowStandalone
Description copied from interface:DateTimeFormatInfo
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.- Specified by:
weekdaysNarrowStandalone
in interfaceDateTimeFormatInfo
-
weekdaysShort
Description copied from interface:DateTimeFormatInfo
Returns an array of abbreviations for weekdays.- Specified by:
weekdaysShort
in interfaceDateTimeFormatInfo
-
weekdaysShortStandalone
Description copied from interface:DateTimeFormatInfo
Returns an array of abbreviations for weekdays, suitable for use in a stand-alone context.- Specified by:
weekdaysShortStandalone
in interfaceDateTimeFormatInfo
-
weekendEnd
public int weekendEnd()Description copied from interface:DateTimeFormatInfo
Returns 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:
weekendEnd
in interfaceDateTimeFormatInfo
-
weekendStart
public int weekendStart()Description copied from interface:DateTimeFormatInfo
Returns the day which starts the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.- Specified by:
weekendStart
in interfaceDateTimeFormatInfo
-