public static enum FileNameRuleCurrentTime.TimeRule extends Enum<FileNameRuleCurrentTime.TimeRule>
YEAR year of current time, E.g., at 2012-7-6 14:37:58.365 PM result is 2012DAY_OF_MONTH indicating the day of the month. The first day of the month has value 1. E.g., at
2012-7-6 14:37:58.365 PM result is 6MILLISECOND milliseconds of current time, E.g., at 2012-7-6 14:37:58.365 PM result is 365HOUR_OF_DAY_TO_MILLIS milliseconds of current time from hour(24 hours), E.g., at 2012-7-6
14:37:58.365 PM result is 52678365HOUR_OF_DAY_TO_SECONDS seconds of current time from hour(24 hours), E.g., at 2012-7-6 14:37:58.365
PM result is 52678HOUR_OF_DAY_TO_MINUTES minutes of current time from hour(24 hours), E.g., at 2012-7-6 14:37:58.365
PM result is 877HOUR_TO_MILLIS milliseconds of current time from hour(12 hours), E.g., at 2012-7-6 14:37:58.365 PM
result is 9478365MINUTE_TO_SECONDS seconds of current time from hour(12 hours), E.g., at 2012-7-6 14:37:58.365 PM
result is 2278TO_MILLIS current time in milliseconds, E.g., at 2012-7-6 14:37:58.365 PM result is 1341556678365TO_SECONDS current time in seconds, E.g., at 2012-7-6 14:37:58.365 PM result is 1341556678| 枚举常量和说明 |
|---|
DAY_OF_MONTH |
HOUR_OF_DAY_TO_MILLIS |
HOUR_OF_DAY_TO_MINUTES |
HOUR_OF_DAY_TO_SECONDS |
HOUR_TO_MILLIS |
MILLISECOND |
MINUTE_TO_SECONDS |
TO_MILLIS |
TO_SECONDS |
YEAR |
| 限定符和类型 | 方法和说明 |
|---|---|
static FileNameRuleCurrentTime.TimeRule |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static FileNameRuleCurrentTime.TimeRule[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final FileNameRuleCurrentTime.TimeRule YEAR
public static final FileNameRuleCurrentTime.TimeRule DAY_OF_MONTH
public static final FileNameRuleCurrentTime.TimeRule MILLISECOND
public static final FileNameRuleCurrentTime.TimeRule HOUR_OF_DAY_TO_MILLIS
public static final FileNameRuleCurrentTime.TimeRule HOUR_OF_DAY_TO_SECONDS
public static final FileNameRuleCurrentTime.TimeRule HOUR_OF_DAY_TO_MINUTES
public static final FileNameRuleCurrentTime.TimeRule HOUR_TO_MILLIS
public static final FileNameRuleCurrentTime.TimeRule MINUTE_TO_SECONDS
public static final FileNameRuleCurrentTime.TimeRule TO_MILLIS
public static final FileNameRuleCurrentTime.TimeRule TO_SECONDS
public static FileNameRuleCurrentTime.TimeRule[] values()
for (FileNameRuleCurrentTime.TimeRule c : FileNameRuleCurrentTime.TimeRule.values()) System.out.println(c);
public static FileNameRuleCurrentTime.TimeRule valueOf(String name)
name - 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException如果参数为空值, - 则抛出 NullPointerExceptionCopyright © 2012-2014. All Rights Reserved.