public enum DateTimeComponent extends Enum<DateTimeComponent>
Enum Constant and Description |
---|
DAY
Day of the month as an INT16
|
HOUR
hour of the day 24-hour clock as an INT16
|
MICROSECOND
microseconds past the millisecond as an INT16
|
MILLISECOND
milliseconds past the seconds as an INT16
|
MINUTE
minutes past the hour as an INT16
|
MONTH
month 1 - jan, as an INT16
|
NANOSECOND
nanoseconds past the microsecond as an INT16
|
SECOND
seconds past the minute as an INT16
|
WEEKDAY
day of the week, Monday=1, ..., Sunday=7 as an INT16
|
YEAR
year as an INT16
|
Modifier and Type | Method and Description |
---|---|
int |
getNativeId() |
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
public static final DateTimeComponent MONTH
public static final DateTimeComponent DAY
public static final DateTimeComponent WEEKDAY
public static final DateTimeComponent HOUR
public static final DateTimeComponent MINUTE
public static final DateTimeComponent SECOND
public static final DateTimeComponent MILLISECOND
public static final DateTimeComponent MICROSECOND
public static final DateTimeComponent NANOSECOND
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 nullpublic int getNativeId()
Copyright © 2024. All rights reserved.