API Reference 0.3.24dart_web_toolkit_i18nDateTimeFormatInfoImpl

DateTimeFormatInfoImpl class

{@link com.google.gwt.i18n.shared.DateTimeFormatInfo} implementation based on Unicode CLDR data.

class DateTimeFormatInfoImpl extends DefaultDateTimeFormatInfo implements Localizable {

}

Extends

DefaultDateTimeFormatInfo > DateTimeFormatInfoImpl

Implements

Localizable

Methods

List<String> ampms() #

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

docs inherited from DateTimeFormatInfo
List<String> ampms() {
 return ["AM", "PM" ];
}

String dateFormat() #

Returns a safe default date format.

docs inherited from DateTimeFormatInfo
String dateFormat() {
 return dateFormatMedium();
}

String dateFormatFull() #

Returns a "full" date format.

docs inherited from DateTimeFormatInfo
String dateFormatFull() {
 return "EEEE, y MMMM dd";
}

String dateFormatLong() #

Returns a "long" date format.

docs inherited from DateTimeFormatInfo
String dateFormatLong() {
 return "y MMMM d";
}

String dateFormatMedium() #

Returns a "medium" date format.

docs inherited from DateTimeFormatInfo
String dateFormatMedium() {
 return "y MMM d";
}

String dateFormatShort() #

Returns a "short" date format.

docs inherited from DateTimeFormatInfo
String dateFormatShort() {
 return "yyyy-MM-dd";
}

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.

@param timePattern the time pattern String @param datePattern the data pattern String

docs inherited from DateTimeFormatInfo
String dateTime(String timePattern, String datePattern) {
 return dateTimeMedium(timePattern, datePattern);
}

String dateTimeFull(String timePattern, String datePattern) #

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

@param timePattern the time pattern String @param datePattern the data pattern String

docs inherited from DateTimeFormatInfo
String dateTimeFull(String timePattern, String datePattern) {
 return datePattern + " " + timePattern;
}

String dateTimeLong(String timePattern, String datePattern) #

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

@param timePattern the time pattern String @param datePattern the data pattern String

docs inherited from DateTimeFormatInfo
String dateTimeLong(String timePattern, String datePattern) {
 return datePattern + " " + timePattern;
}

String dateTimeMedium(String timePattern, String datePattern) #

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

@param timePattern the time pattern String @param datePattern the data pattern String

docs inherited from DateTimeFormatInfo
String dateTimeMedium(String timePattern, String datePattern) {
 return datePattern + " " + timePattern;
}

String dateTimeShort(String timePattern, String datePattern) #

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

@param timePattern the time pattern String @param datePattern the data pattern String

docs inherited from DateTimeFormatInfo
String dateTimeShort(String timePattern, String datePattern) {
 return datePattern + " " + timePattern;
}

List<String> erasFull() #

Returns an array of the full era names.

docs inherited from DateTimeFormatInfo
List<String> erasFull() {
 return ["Before Christ", "Anno Domini"];
}

List<String> erasShort() #

Returns abbreviations of the era names.

docs inherited from DateTimeFormatInfo
List<String> erasShort() {
 return ["BC", "AD"];
}

int firstDayOfTheWeek() #

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

docs inherited from DateTimeFormatInfo
int firstDayOfTheWeek() {
 return 1;
}

String formatDay() #

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

docs inherited from DateTimeFormatInfo
String formatDay() {
 return "d";
}

String formatHour12Minute() #

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

docs inherited from DateTimeFormatInfo
String formatHour12Minute() {
 return "h:mm a";
}

String formatHour12MinuteSecond() #

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

docs inherited from DateTimeFormatInfo
String formatHour12MinuteSecond() {
 return "h:mm:ss a";
}

String formatHour24Minute() #

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

docs inherited from DateTimeFormatInfo
String formatHour24Minute() {
 return "HH:mm";
}

String formatHour24MinuteSecond() #

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

docs inherited from DateTimeFormatInfo
String formatHour24MinuteSecond() {
 return "HH:mm:ss";
}

String formatMinuteSecond() #

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

docs inherited from DateTimeFormatInfo
String formatMinuteSecond() {
 return "mm:ss";
}

String formatMonthAbbrev() #

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

docs inherited from DateTimeFormatInfo
String formatMonthAbbrev() {
 return "LLL";
}

String formatMonthAbbrevDay() #

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

docs inherited from DateTimeFormatInfo
String formatMonthAbbrevDay() {
 return "MMM d";
}

String formatMonthFull() #

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

docs inherited from DateTimeFormatInfo
String formatMonthFull() {
 return "LLLL";
}

String formatMonthFullDay() #

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

docs inherited from DateTimeFormatInfo
String formatMonthFullDay() {
 return "MMMM d";
}

String formatMonthFullWeekdayDay() #

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

docs inherited from DateTimeFormatInfo
String formatMonthFullWeekdayDay() {
 return "EEEE MMMM d";
}

String formatMonthNumDay() #

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

docs inherited from DateTimeFormatInfo
String formatMonthNumDay() {
 return "M-d";
}

String formatYear() #

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

docs inherited from DateTimeFormatInfo
String formatYear() {
 return "y";
}

String formatYearMonthAbbrev() #

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

docs inherited from DateTimeFormatInfo
String formatYearMonthAbbrev() {
 return "y MMM";
}

String formatYearMonthAbbrevDay() #

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

docs inherited from DateTimeFormatInfo
String formatYearMonthAbbrevDay() {
 return "y MMM d";
}

String formatYearMonthFull() #

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

docs inherited from DateTimeFormatInfo
String formatYearMonthFull() {
 return "y MMMM";
}

String formatYearMonthFullDay() #

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

docs inherited from DateTimeFormatInfo
String formatYearMonthFullDay() {
 return "y MMMM d";
}

String formatYearMonthNum() #

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

docs inherited from DateTimeFormatInfo
String formatYearMonthNum() {
 return "y-M";
}

String formatYearMonthNumDay() #

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

docs inherited from DateTimeFormatInfo
String formatYearMonthNumDay() {
 return "y-M-d";
}

String formatYearMonthWeekdayDay() #

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

docs inherited from DateTimeFormatInfo
String formatYearMonthWeekdayDay() {
 return "EEE, y MMM d";
}

String formatYearQuarterFull() #

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

docs inherited from DateTimeFormatInfo
String formatYearQuarterFull() {
 return "y QQQQ";
}

String formatYearQuarterShort() #

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

docs inherited from DateTimeFormatInfo
String formatYearQuarterShort() {
 return "y Q";
}

List<String> monthsFull() #

Returns an array of full month names.

docs inherited from DateTimeFormatInfo
List<String> monthsFull() {
 return ["January",
     "February",
     "March",
     "April",
     "May",
     "June",
     "July",
     "August",
     "September",
     "October",
     "November",
     "December"
 ];
}

List<String> monthsFullStandalone() #

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

docs inherited from DateTimeFormatInfo
List<String> monthsFullStandalone() {
 return monthsFull();
}

List<String> monthsNarrow() #

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

docs inherited from DateTimeFormatInfo
List<String> monthsNarrow() {
 return ["J",
     "F",
     "M",
     "A",
     "M",
     "J",
     "J",
     "A",
     "S",
     "O",
     "N",
     "D"
 ];
}

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

docs inherited from DateTimeFormatInfo
List<String> monthsNarrowStandalone() {
 return monthsNarrow();
}

List<String> monthsShort() #

Returns an array of month abbreviations.

docs inherited from DateTimeFormatInfo
List<String> monthsShort() {
 return [
     "Jan",
     "Feb",
     "Mar",
     "Apr",
     "May",
     "Jun",
     "Jul",
     "Aug",
     "Sep",
     "Oct",
     "Nov",
     "Dec"
 ];
}

List<String> monthsShortStandalone() #

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

docs inherited from DateTimeFormatInfo
List<String> monthsShortStandalone() {
 return monthsShort();
}

List<String> quartersFull() #

Returns an array of full quarter names.

docs inherited from DateTimeFormatInfo
List<String> quartersFull() {
 return [
     "1st quarter",
     "2nd quarter",
     "3rd quarter",
     "4th quarter"
 ];
}

List<String> quartersShort() #

Returns an array of abbreviations for quarters.

docs inherited from DateTimeFormatInfo
List<String> quartersShort() {
 return [
     "Q1",
     "Q2",
     "Q3",
     "Q4"
 ];
}

String timeFormat() #

Returns a safe default time format.

docs inherited from DateTimeFormatInfo
String timeFormat() {
 return timeFormatMedium();
}

String timeFormatFull() #

Returns a "full" time format.

docs inherited from DateTimeFormatInfo
String timeFormatFull() {
 return "HH:mm:ss zzzz";
}

String timeFormatLong() #

Returns a "long" time format.

docs inherited from DateTimeFormatInfo
String timeFormatLong() {
 return "HH:mm:ss z";
}

String timeFormatMedium() #

Returns a "medium" time format.

docs inherited from DateTimeFormatInfo
String timeFormatMedium() {
 return "HH:mm:ss";
}

String timeFormatShort() #

Returns a "short" time format.

docs inherited from DateTimeFormatInfo
String timeFormatShort() {
 return "HH:mm";
}

List<String> weekdaysFull() #

Returns an array of the full names of weekdays.

docs inherited from DateTimeFormatInfo
List<String> weekdaysFull() {
 return [
     "Sunday",
     "Monday",
     "Tuesday",
     "Wednesday",
     "Thursday",
     "Friday",
     "Saturday"
 ];
}

List<String> weekdaysFullStandalone() #

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

docs inherited from DateTimeFormatInfo
List<String> weekdaysFullStandalone() {
 return weekdaysFull();
}

List<String> weekdaysNarrow() #

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

docs inherited from DateTimeFormatInfo
List<String> weekdaysNarrow() {
 return [
     "S",
     "M",
     "T",
     "W",
     "T",
     "F",
     "S"
 ];
}

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

docs inherited from DateTimeFormatInfo
List<String> weekdaysNarrowStandalone() {
 return weekdaysNarrow();
}

List<String> weekdaysShort() #

Returns an array of abbreviations for weekdays.

docs inherited from DateTimeFormatInfo
List<String> weekdaysShort() {
 return [
     "Sun",
     "Mon",
     "Tue",
     "Wed",
     "Thu",
     "Fri",
     "Sat"
 ];
}

List<String> weekdaysShortStandalone() #

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

docs inherited from DateTimeFormatInfo
List<String> weekdaysShortStandalone() {
 return weekdaysShort();
}

int weekendEnd() #

Returns the day which ends the weekend, as an index into the return value of {@link #weekdaysFull()}.

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

docs inherited from DateTimeFormatInfo
int weekendEnd() {
 return 0;
}

int weekendStart() #

Returns the day which starts the weekend, as an index into the return value of {@link #weekdaysFull()}.

docs inherited from DateTimeFormatInfo
int weekendStart() {
 return 6;
}