public class

DefaultDateTimeFormatInfo

extends Object
implements DateTimeFormatInfo
java.lang.Object
   ↳ com.google.gwt.i18n.client.DefaultDateTimeFormatInfo
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

Public Constructors
DefaultDateTimeFormatInfo()
Public Methods
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 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 weekdaysFull().
int weekendStart()
Returns the day which starts the weekend, as an index into the return value of weekdaysFull().
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.i18n.client.DateTimeFormatInfo

Public Constructors

public DefaultDateTimeFormatInfo ()

Public Methods

public String[] ampms ()

Returns array of strings containing abbreviations for Ante Meridiem and Post Meridiem.

public String dateFormat ()

Returns a safe default date format.

public String dateFormatFull ()

Returns a "full" date format.

public String dateFormatLong ()

Returns a "long" date format.

public String dateFormatMedium ()

Returns a "medium" date format.

public String dateFormatShort ()

Returns a "short" date format.

public 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.

Parameters
timePattern the time pattern String
datePattern the data pattern String

public String dateTimeFull (String timePattern, String datePattern)

Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.

Parameters
timePattern the time pattern String
datePattern the data pattern String

public String dateTimeLong (String timePattern, String datePattern)

Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.

Parameters
timePattern the time pattern String
datePattern the data pattern String

public String dateTimeMedium (String timePattern, String datePattern)

Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.

Parameters
timePattern the time pattern String
datePattern the data pattern String

public String dateTimeShort (String timePattern, String datePattern)

Returns a date/time format from a date format pattern and a time format pattern, using "full" joining.

Parameters
timePattern the time pattern String
datePattern the data pattern String

public String[] erasFull ()

Returns an array of the full era names.

public String[] erasShort ()

Returns abbreviations of the era names.

public int firstDayOfTheWeek ()

Returns the day which generally comes first in a weekly calendar view, as an index into the return value of weekdaysFull().

public String formatDay ()

Returns localized format equivalent to the "d" skeleton pattern.

public String formatHour12Minute ()

Returns localized format equivalent to the "hm" skeleton pattern.

public String formatHour12MinuteSecond ()

Returns localized format equivalent to the "hms" skeleton pattern.

public String formatHour24Minute ()

Returns localized format equivalent to the "Hm" skeleton pattern.

public String formatHour24MinuteSecond ()

Returns localized format equivalent to the "Hms" skeleton pattern.

public String formatMinuteSecond ()

Returns localized format equivalent to the "ms" skeleton pattern.

public String formatMonthAbbrev ()

Returns localized format equivalent to the "MMM" skeleton pattern.

public String formatMonthAbbrevDay ()

Returns localized format equivalent to the "MMMd" skeleton pattern.

public String formatMonthFull ()

Returns localized format equivalent to the "MMMM" skeleton pattern.

public String formatMonthFullDay ()

Returns localized format equivalent to the "MMMMd" skeleton pattern.

public String formatMonthFullWeekdayDay ()

Returns localized format equivalent to the "MMMMEEEEd" skeleton pattern.

public String formatMonthNumDay ()

Returns localized format equivalent to the "Md" skeleton pattern.

public String formatYear ()

Returns localized format equivalent to the "y" skeleton pattern.

public String formatYearMonthAbbrev ()

Returns localized format equivalent to the "yMMM" skeleton pattern.

public String formatYearMonthAbbrevDay ()

Returns localized format equivalent to the "yMMMd" skeleton pattern.

public String formatYearMonthFull ()

Returns localized format equivalent to the "yMMMM" skeleton pattern.

public String formatYearMonthFullDay ()

Returns localized format equivalent to the "yMMMMd" skeleton pattern.

public String formatYearMonthNum ()

Returns localized format equivalent to the "yM" skeleton pattern.

public String formatYearMonthNumDay ()

Returns localized format equivalent to the "yMd" skeleton pattern.

public String formatYearMonthWeekdayDay ()

Returns localized format equivalent to the "yMMMEEEd" skeleton pattern.

public String formatYearQuarterFull ()

Returns localized format equivalent to the "yQQQQ" skeleton pattern.

public String formatYearQuarterShort ()

Returns localized format equivalent to the "yQ" skeleton pattern.

public String[] monthsFull ()

Returns an array of full month names.

public String[] monthsFullStandalone ()

Returns an array of month names for use in a stand-alone context.

public String[] monthsNarrow ()

Returns an array of the shortest abbreviations for months, typically a single character and not guaranteed to be unique.

public 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.

public String[] monthsShort ()

Returns an array of month abbreviations.

public String[] monthsShortStandalone ()

Returns an array of month abbreviations, suitable for use in a stand-alone context.

public String[] quartersFull ()

Returns an array of full quarter names.

public String[] quartersShort ()

Returns an array of abbreviations for quarters.

public String timeFormat ()

Returns a safe default time format.

public String timeFormatFull ()

Returns a "full" time format.

public String timeFormatLong ()

Returns a "long" time format.

public String timeFormatMedium ()

Returns a "medium" time format.

public String timeFormatShort ()

Returns a "short" time format.

public String[] weekdaysFull ()

Returns an array of the full names of weekdays.

public String[] weekdaysFullStandalone ()

Returns an array of the full names of weekdays, suitable for use in a stand-alone context.

public String[] weekdaysNarrow ()

Returns an array of the shortest abbreviations for weekdays, typically a single character and not guaranteed to be unique.

public 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.

public String[] weekdaysShort ()

Returns an array of abbreviations for weekdays.

public String[] weekdaysShortStandalone ()

Returns an array of abbreviations for weekdays, suitable for use in a stand-alone context.

public int weekendEnd ()

Returns the day which ends the weekend, as an index into the return value of weekdaysFull().

Note that this value may be numerically less than weekendStart() - for example, weekendStart() of 6 and weekendEnd() of 0 means Saturday and Sunday are the weekend.

public int weekendStart ()

Returns the day which starts the weekend, as an index into the return value of weekdaysFull().