Package com.google.gwt.i18n.client
Enum DateTimeFormat.PredefinedFormat
java.lang.Object
java.lang.Enum<DateTimeFormat.PredefinedFormat>
com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat
- All Implemented Interfaces:
Serializable
,Comparable<DateTimeFormat.PredefinedFormat>
,java.lang.constant.Constable
- Enclosing class:
DateTimeFormat
Predefined date/time formats -- see
CustomDateTimeFormat
if you
need some format that isn't supplied here.
deprecated use DateTimeFormat.PredefinedFormat
instead-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionISO 8601 date format, fixed across all locales.RFC 2822 date format, fixed across all locales. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static DateTimeFormat.PredefinedFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ISO_8601
ISO 8601 date format, fixed across all locales.Example:
2008-10-03T10:29:40.046-04:00
http://code.google.com/p/google-web-toolkit/issues/detail?id=3068
http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/date_and_time_format.htm
-
RFC_2822
RFC 2822 date format, fixed across all locales.Example:
Thu, 20 May 2010 17:54:50 -0700
http://tools.ietf.org/html/rfc2822#section-3.3
-
DATE_FULL
-
DATE_LONG
-
DATE_MEDIUM
-
DATE_SHORT
-
TIME_FULL
-
TIME_LONG
-
TIME_MEDIUM
-
TIME_SHORT
-
DATE_TIME_FULL
-
DATE_TIME_LONG
-
DATE_TIME_MEDIUM
-
DATE_TIME_SHORT
-
DAY
-
HOUR_MINUTE
-
HOUR_MINUTE_SECOND
-
HOUR24_MINUTE
-
HOUR24_MINUTE_SECOND
-
MINUTE_SECOND
-
MONTH
-
MONTH_ABBR
-
MONTH_ABBR_DAY
-
MONTH_DAY
-
MONTH_NUM_DAY
-
MONTH_WEEKDAY_DAY
-
YEAR
-
YEAR_MONTH
-
YEAR_MONTH_ABBR
-
YEAR_MONTH_ABBR_DAY
-
YEAR_MONTH_DAY
-
YEAR_MONTH_NUM
-
YEAR_MONTH_NUM_DAY
-
YEAR_MONTH_WEEKDAY_DAY
-
YEAR_QUARTER
-
YEAR_QUARTER_ABBR
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-