Package adams.core
Enum DateTimeType
- java.lang.Object
-
- java.lang.Enum<DateTimeType>
-
- adams.core.DateTimeType
-
- All Implemented Interfaces:
Serializable
,Comparable<DateTimeType>
public enum DateTimeType extends Enum<DateTimeType>
Lists various date/time types.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASEDATE
BaseDate.BASEDATETIME
BaseDateTime.BASEDATETIMEMSEC
BaseDateTimeMsec.BASETIME
BaseTime.BASETIMEMSEC
BaseTime.DATE
java's Date.DATETIME
adams' DateTime.DATETIMEMSEC
adams' DateTimeMsec.MSECS
msecs since 1970.MSECS_LONG
msecs since 1970.SECONDS
seconds since 1970.SECONDS_LONG
seconds since 1970.SERIAL_DATETIME
days since 0-jan-1900 date (Excel).SERIAL_DATETIME_LONG
days since 0-jan-1900 date (Excel).TIME
adams' Time.TIMEMSEC
adams' DateTimeMsec.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateTimeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateTimeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MSECS
public static final DateTimeType MSECS
msecs since 1970.
-
MSECS_LONG
public static final DateTimeType MSECS_LONG
msecs since 1970.
-
SECONDS
public static final DateTimeType SECONDS
seconds since 1970.
-
SECONDS_LONG
public static final DateTimeType SECONDS_LONG
seconds since 1970.
-
DATE
public static final DateTimeType DATE
java's Date.
-
DATETIME
public static final DateTimeType DATETIME
adams' DateTime.
-
DATETIMEMSEC
public static final DateTimeType DATETIMEMSEC
adams' DateTimeMsec.
-
TIME
public static final DateTimeType TIME
adams' Time.
-
TIMEMSEC
public static final DateTimeType TIMEMSEC
adams' DateTimeMsec.
-
BASEDATE
public static final DateTimeType BASEDATE
BaseDate.
-
BASEDATETIME
public static final DateTimeType BASEDATETIME
BaseDateTime.
-
BASEDATETIMEMSEC
public static final DateTimeType BASEDATETIMEMSEC
BaseDateTimeMsec.
-
BASETIME
public static final DateTimeType BASETIME
BaseTime.
-
BASETIMEMSEC
public static final DateTimeType BASETIMEMSEC
BaseTime.
-
SERIAL_DATETIME
public static final DateTimeType SERIAL_DATETIME
days since 0-jan-1900 date (Excel).
-
SERIAL_DATETIME_LONG
public static final DateTimeType SERIAL_DATETIME_LONG
days since 0-jan-1900 date (Excel).
-
-
Method Detail
-
values
public static DateTimeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateTimeType c : DateTimeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateTimeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-