public static enum DateTime.Unit extends java.lang.Enum<DateTime.Unit>
DateTime-mathemathics.| Enum Constant and Description |
|---|
DAYS |
HOURS |
MICROS |
MILLIS |
MINUTES |
MONTHS |
NANOS |
SECONDS |
WEEKS |
YEARS |
| Modifier and Type | Method and Description |
|---|---|
static DateTime.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateTime.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTime.Unit NANOS
public static final DateTime.Unit MICROS
public static final DateTime.Unit MILLIS
public static final DateTime.Unit SECONDS
public static final DateTime.Unit MINUTES
public static final DateTime.Unit HOURS
public static final DateTime.Unit DAYS
public static final DateTime.Unit WEEKS
public static final DateTime.Unit MONTHS
public static final DateTime.Unit YEARS
public static DateTime.Unit[] values()
for (DateTime.Unit c : DateTime.Unit.values()) System.out.println(c);
public static DateTime.Unit valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null