com.ibm.icu.util
Class TimeUnit

java.lang.Object
  extended by com.ibm.icu.util.MeasureUnit
      extended by com.ibm.icu.util.TimeUnit

public class TimeUnit
extends MeasureUnit

Measurement unit for time units.

Author:
markdavis
See Also:
TimeUnitAmount, TimeUnit
Status:
Stable ICU 4.0.

Field Summary
static TimeUnit DAY
          Constant value for supported time unit.
static TimeUnit HOUR
          Constant value for supported time unit.
static TimeUnit MINUTE
          Constant value for supported time unit.
static TimeUnit MONTH
          Constant value for supported time unit.
static TimeUnit SECOND
          Constant value for supported time unit.
static TimeUnit WEEK
          Constant value for supported time unit.
static TimeUnit YEAR
          Constant value for supported time unit.
 
Method Summary
 String toString()
          A string representation for debugging.
static TimeUnit[] values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SECOND

public static TimeUnit SECOND
Constant value for supported time unit.

Status:
Stable ICU 4.0.

MINUTE

public static TimeUnit MINUTE
Constant value for supported time unit.

Status:
Stable ICU 4.0.

HOUR

public static TimeUnit HOUR
Constant value for supported time unit.

Status:
Stable ICU 4.0.

DAY

public static TimeUnit DAY
Constant value for supported time unit.

Status:
Stable ICU 4.0.

WEEK

public static TimeUnit WEEK
Constant value for supported time unit.

Status:
Stable ICU 4.0.

MONTH

public static TimeUnit MONTH
Constant value for supported time unit.

Status:
Stable ICU 4.0.

YEAR

public static TimeUnit YEAR
Constant value for supported time unit.

Status:
Stable ICU 4.0.
Method Detail

values

public static TimeUnit[] values()
Returns:
the available values
Status:
Stable ICU 4.0.

toString

public String toString()
A string representation for debugging. It is for debugging purpose. The value might change. Please do not count on the value.

Overrides:
toString in class Object
Status:
Stable ICU 4.0.


Copyright (c) 2011 IBM Corporation and others.