public static enum DateUtils.TimeType extends java.lang.Enum<DateUtils.TimeType>
时间类型
millisecond 毫秒 second 秒 minute 分钟 hour 小时 day 日| Enum Constant and Description |
|---|
day |
hour |
millisecond |
minute |
second |
| Modifier and Type | Method and Description |
|---|---|
static DateUtils.TimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateUtils.TimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateUtils.TimeType millisecond
public static final DateUtils.TimeType second
public static final DateUtils.TimeType minute
public static final DateUtils.TimeType hour
public static final DateUtils.TimeType day
public static DateUtils.TimeType[] values()
for (DateUtils.TimeType c : DateUtils.TimeType.values()) System.out.println(c);
public static DateUtils.TimeType 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