public static enum FileNameRuleCurrentTime.TimeRule extends java.lang.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 1341556678Enum Constant and Description |
---|
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 |
Modifier and Type | Method and Description |
---|---|
static FileNameRuleCurrentTime.TimeRule |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileNameRuleCurrentTime.TimeRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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(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