DateTimeMeasureUnit Enum

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

Syntax

public final enum DateTimeMeasureUnit
extends Enum<DateTimeMeasureUnit>

The following methods use the DateTimeMeasureUnit enumeration values:

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

DAY Field

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

Syntax

public static final DateTimeMeasureUnit DAY

DEFAULT Field

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

Syntax

public static final DateTimeMeasureUnit DEFAULT

HOUR Field

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

Syntax

public static final DateTimeMeasureUnit HOUR

MILLISECOND Field

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

Syntax

public static final DateTimeMeasureUnit MILLISECOND

MINUTE Field

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

Syntax

public static final DateTimeMeasureUnit MINUTE

MONTH Field

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

Syntax

public static final DateTimeMeasureUnit MONTH

QUARTER Field

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

Syntax

public static final DateTimeMeasureUnit QUARTER

SECOND Field

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

Syntax

public static final DateTimeMeasureUnit SECOND

WEEK Field

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

Syntax

public static final DateTimeMeasureUnit WEEK

YEAR Field

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

Syntax

public static final DateTimeMeasureUnit YEAR

Methods

valueOf(String) Method

Returns the enumeration constant with the specified name.

Syntax

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.

values() Method

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

Syntax

public static DateTimeMeasureUnit[] values()

Returns

Type Description
DateTimeMeasureUnit[]

The array of the DateTimeMeasureUnit enumeration values.