public static enum DateTime.Format extends Enum<DateTime.Format>
Enum Constant and Description |
---|
SIMPLE
YYYYMMDDhhmmss . |
STANDARD
YYYY-MM-DD hh:mm:ss . |
Modifier and Type | Method and Description |
---|---|
abstract long |
parse(String timeString)
Parses the target string and returns the corresponding date and time as the elapsed seconds from
0001/01/01 (YYYY/MM/DD) 00:00:00 . |
static DateTime.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTime.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTime.Format SIMPLE
YYYYMMDDhhmmss
.public static final DateTime.Format STANDARD
YYYY-MM-DD hh:mm:ss
.public static DateTime.Format[] values()
for (DateTime.Format c : DateTime.Format.values()) System.out.println(c);
public static DateTime.Format 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 nullpublic abstract long parse(String timeString)
0001/01/01 (YYYY/MM/DD) 00:00:00
.timeString
- the target stringIllegalArgumentException
- if the target string is malformedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.