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 relative to now, using the same rules as RELATIVE_ALWAYS_WITH_TIME.
|
RELATIVE_ALWAYS_WITH_TIME
Display the date and time relative to now (e.g.
|
RELATIVE_WITH_TIME_ONLY
Display the date relative to now (e.g.
|
RELATIVE_WITHOUT_TIME
Display the date relative to now (e.g.
|
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
You should use system time zone when you use this type of formatter.
public static final DateTimeStyle COMPLETE
public static final DateTimeStyle RELATIVE
RELATIVE_ALWAYS_WITH_TIME
public static final DateTimeStyle DATE_TIME_PICKER
public static final DateTimeStyle DATE_PICKER
public static final DateTimeStyle RELATIVE_WITH_TIME_ONLY
Note that dates will only be displayed in relative format if this feature is enabled in Jira.
Examples:public static final DateTimeStyle RELATIVE_ALWAYS_WITH_TIME
Note that dates will only be displayed in relative format if this feature is enabled in Jira.
Examples:public static final DateTimeStyle RELATIVE_WITHOUT_TIME
Note that dates will only be displayed in relative format if this feature is enabled in Jira.
Examples: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-2019 Atlassian. All Rights Reserved.