public enum DateTimeComponent extends Enum<DateTimeComponent>
Calendar
structure.Enum Constant and Description |
---|
DATE
The
Calendar.DATE component. |
DAY
The
Calendar.DAY_OF_MONTH component. |
DAY_OF_WEEK
The
Calendar.DAY_OF_WEEK component. |
DAY_OF_YEAR
The
Calendar.DAY_OF_YEAR component. |
HOUR
The
Calendar.HOUR component. |
MILLISECOND
The
Calendar.MILLISECOND component. |
MINUTE
The
Calendar.MINUTE component. |
MONTH
The
Calendar.MONTH component. |
QUARTER
The QUARTER component.
|
SECOND
The
Calendar.SECOND component. |
TIME_IN_MILLIS
The time milliseconds since January 1, 1970 00:00:00.000 GMT (Gregorian).
|
TIME_OF_DAY
The TIME OF DAY component.
|
WEEK
The
Calendar.WEEK_OF_MONTH component. |
YEAR
The
Calendar.YEAR component. |
Modifier and Type | Method and Description |
---|---|
static DateTimeComponent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeComponent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeComponent YEAR
Calendar.YEAR
component.public static final DateTimeComponent QUARTER
public static final DateTimeComponent MONTH
Calendar.MONTH
component.public static final DateTimeComponent WEEK
Calendar.WEEK_OF_MONTH
component. // TODO: Make sure it is of month, not of year.public static final DateTimeComponent HOUR
Calendar.HOUR
component.public static final DateTimeComponent MINUTE
Calendar.MINUTE
component.public static final DateTimeComponent SECOND
Calendar.SECOND
component.public static final DateTimeComponent MILLISECOND
Calendar.MILLISECOND
component.public static final DateTimeComponent DATE
Calendar.DATE
component. // TODO: Make sure it is just date, not data of month, year etc.public static final DateTimeComponent TIME_OF_DAY
public static final DateTimeComponent DAY
Calendar.DAY_OF_MONTH
component.public static final DateTimeComponent DAY_OF_WEEK
Calendar.DAY_OF_WEEK
component.public static final DateTimeComponent DAY_OF_YEAR
Calendar.DAY_OF_YEAR
component.public static final DateTimeComponent TIME_IN_MILLIS
public static DateTimeComponent[] values()
for (DateTimeComponent c : DateTimeComponent.values()) System.out.println(c);
public static DateTimeComponent 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 null