Package com.ibm.icu.impl.duration
Class TimeUnit
java.lang.Object
com.ibm.icu.impl.duration.TimeUnit
'Enum' for individual time units. Not an actual enum so that it can be
used by Java 1.4.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final long[]Approximate, durations for the units independent of the time at which they are measuredstatic final TimeUnitRepresents a day.static final TimeUnitRepresents an hour.static final TimeUnitRepresents a millisecond.static final TimeUnitRepresents a minute.static final TimeUnitRepresents a month.(package private) final StringThe name of this unit, a key, not for localization.(package private) final byteThe ordinal of the unit, in order from largest to smallest.static final TimeUnitRepresents a second.(package private) static final TimeUnit[]The list of units, in order from largest to smallest.static final TimeUnitRepresents a week.static final TimeUnitRepresents a year. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The name of this unit, a key, not for localization. -
ordinal
final byte ordinalThe ordinal of the unit, in order from largest to smallest. -
YEAR
Represents a year. -
MONTH
Represents a month. -
WEEK
Represents a week. -
DAY
Represents a day. -
HOUR
Represents an hour. -
MINUTE
Represents a minute. -
SECOND
Represents a second. -
MILLISECOND
Represents a millisecond. -
units
The list of units, in order from largest to smallest. -
approxDurations
static final long[] approxDurationsApproximate, durations for the units independent of the time at which they are measured
-
-
Constructor Details
-
TimeUnit
Private constructor
-
-
Method Details