public static enum W3CDateFormat.Pattern extends Enum<W3CDateFormat.Pattern>
AUTO configuration| Enum Constant and Description |
|---|
AUTO
Automatically compute the right pattern to use
|
DAY
"yyyy-MM-dd"
|
MILLISECOND
"yyyy-MM-dd'T'HH:mm:ss.SSSZ"
|
MINUTE
"yyyy-MM-dd'T'HH:mmZ"
|
MONTH
"yyyy-MM"
|
SECOND
"yyyy-MM-dd'T'HH:mm:ssZ"
|
YEAR
"yyyy"
|
| Modifier and Type | Method and Description |
|---|---|
static W3CDateFormat.Pattern |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static W3CDateFormat.Pattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final W3CDateFormat.Pattern MILLISECOND
public static final W3CDateFormat.Pattern SECOND
public static final W3CDateFormat.Pattern MINUTE
public static final W3CDateFormat.Pattern DAY
public static final W3CDateFormat.Pattern MONTH
public static final W3CDateFormat.Pattern YEAR
public static final W3CDateFormat.Pattern AUTO
public static W3CDateFormat.Pattern[] values()
for (W3CDateFormat.Pattern c : W3CDateFormat.Pattern.values()) System.out.println(c);
public static W3CDateFormat.Pattern 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 © 2016. All rights reserved.