Class TimeUnit
java.lang.Object
org.graalvm.shadowed.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 TypeFieldDescriptionstatic final TimeUnitRepresents a day.static final TimeUnitRepresents an hour.static final TimeUnitRepresents a millisecond.static final TimeUnitRepresents a minute.static final TimeUnitRepresents a month.static final TimeUnitRepresents a second.static final TimeUnitRepresents a week.static final TimeUnitRepresents a year. -
Method Summary
-
Field Details
-
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.
-
-
Method Details
-
toString
-
larger
Returns the next larger time unit, or null if this is the largest. -
smaller
Returns the next smaller time unit, or null if this is the smallest. -
ordinal
public int ordinal()Returns the ordinal value of this time unit, largest is 0.
-