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 TimeUnit
Represents a day.static final TimeUnit
Represents an hour.static final TimeUnit
Represents a millisecond.static final TimeUnit
Represents a minute.static final TimeUnit
Represents a month.(package private) final String
The name of this unit, a key, not for localization.(package private) final byte
The ordinal of the unit, in order from largest to smallest.static final TimeUnit
Represents a second.(package private) static final TimeUnit[]
The list of units, in order from largest to smallest.static final TimeUnit
Represents a week.static final TimeUnit
Represents 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