DateTimeMeasureUnit Enum

Lists the values that specify the detail level for date-time values.

Declaration

public final enum DateTimeMeasureUnit
extends Enum<DateTimeMeasureUnit>

The following methods use the DateTimeMeasureUnit enumeration values:

Inheritance

Object
java.lang.Enum<DateTimeMeasureUnit>
DateTimeMeasureUnit

Implements

java.lang.Comparable<DateTimeMeasureUnit>
java.io.Serializable

Inherited Members

java.lang.Object.equals(java.lang.Object)
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long, int)
java.lang.Enum<E>.compareTo(E)
java.lang.Enum<E>.equals(java.lang.Object)
java.lang.Enum<E>.getDeclaringClass()
java.lang.Enum<E>.hashCode()
java.lang.Enum<E>.name()
java.lang.Enum<E>.ordinal()
java.lang.Enum<E>.toString()
java.lang.Enum<E>.valueOf<T>(java.lang.Class<T>, java.lang.String)

Fields

DateTimeMeasureUnit.DAY Field

Specifies a day as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit DAY

Field Value

Type Description

DateTimeMeasureUnit.DEFAULT Field

The default detail level for date-time values should be used.

Declaration

public static final DateTimeMeasureUnit DEFAULT

Field Value

Type Description

DateTimeMeasureUnit.HOUR Field

Specifies an hour as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit HOUR

Field Value

Type Description

DateTimeMeasureUnit.MILLISECOND Field

Specifies a millisecond as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit MILLISECOND

Field Value

Type Description

DateTimeMeasureUnit.MINUTE Field

Specifies a minute as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit MINUTE

Field Value

Type Description

DateTimeMeasureUnit.MONTH Field

Specifies a month as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit MONTH

Field Value

Type Description

DateTimeMeasureUnit.QUARTER Field

Specifies a quarter as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit QUARTER

Field Value

Type Description

DateTimeMeasureUnit.SECOND Field

Specifies a second as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit SECOND

Field Value

Type Description

DateTimeMeasureUnit.WEEK Field

Specifies a week as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit WEEK

Field Value

Type Description

DateTimeMeasureUnit.YEAR Field

Specifies a year as the measurement unit for date-time values.

Declaration

public static final DateTimeMeasureUnit YEAR

Field Value

Type Description

Methods

DateTimeMeasureUnit.valueOf(String) Method

Returns the enumeration constant with the specified name.

Declaration

public static DateTimeMeasureUnit valueOf(String name)

Parameters

Type Name Description
String name

The name of the enumeration constant to return.

Returns

Type Description

The DateTimeMeasureUnit enumeration constant with the specified name.

DateTimeMeasureUnit.values() Method

Returns the array containing all the DateTimeMeasureUnit enumeration values in the order they are declared.

Declaration

public static DateTimeMeasureUnit[] values()

Returns

Type Description
DateTimeMeasureUnit[]

The array of the DateTimeMeasureUnit enumeration values.