public enum DateTimeStyle extends Enum<DateTimeStyle>
Enum Constant and Description |
---|
COMPLETE
Display the date and time.
|
DATE
Display the date (day, month, and year).
|
DATE_PICKER
Displays the date in date picker format.
|
DATE_TIME_PICKER
Displays the date and time in date picker format.
|
ISO_8601_DATE
The ISO8601 Date format.
|
ISO_8601_DATE_TIME
The ISO8601 Date Time format.
|
RELATIVE
Display the date and time relative to now (e.g.
|
RELATIVE_ALWAYS_WITH_TIME
Displays all dates with time.
|
RELATIVE_WITH_TIME_ONLY
Displays the time only for relative dates.
|
RELATIVE_WITHOUT_TIME
Displays dates and never the time.
|
RSS_RFC822_DATE_TIME
The RFC822 Date format.This format includes date,time and time zone information
|
TIME
Display the time only.
|
Modifier and Type | Method and Description |
---|---|
static DateTimeStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeStyle TIME
public static final DateTimeStyle DATE
public static final DateTimeStyle COMPLETE
public static final DateTimeStyle RELATIVE
public static final DateTimeStyle DATE_TIME_PICKER
public static final DateTimeStyle DATE_PICKER
public static final DateTimeStyle RELATIVE_WITH_TIME_ONLY
public static final DateTimeStyle RELATIVE_ALWAYS_WITH_TIME
public static final DateTimeStyle RELATIVE_WITHOUT_TIME
public static final DateTimeStyle ISO_8601_DATE_TIME
public static final DateTimeStyle ISO_8601_DATE
public static final DateTimeStyle RSS_RFC822_DATE_TIME
public static DateTimeStyle[] values()
for (DateTimeStyle c : DateTimeStyle.values()) System.out.println(c);
public static DateTimeStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2002-2015 Atlassian. All Rights Reserved.