| Package | Description |
|---|---|
| org.threeten.extra |
| Modifier and Type | Field and Description |
|---|---|
static Hours |
Hours.ZERO
A constant for zero hours.
|
| Modifier and Type | Method and Description |
|---|---|
Hours |
Hours.abs()
Returns a copy of this duration with a positive length.
|
static Hours |
Hours.between(Temporal startDateInclusive,
Temporal endDateExclusive)
Obtains a
Hours consisting of the number of hours between two dates. |
Hours |
Hours.dividedBy(int divisor)
Returns an instance with the amount divided by the specified divisor.
|
static Hours |
Hours.from(TemporalAmount amount)
Obtains an instance of
Hours from a temporal amount. |
Hours |
Hours.minus(int hours)
Returns a copy of this amount with the specified number of hours subtracted.
|
Hours |
Hours.minus(TemporalAmount amountToAdd)
Returns a copy of this amount with the specified amount subtracted.
|
Hours |
Hours.multipliedBy(int scalar)
Returns an instance with the amount multiplied by the specified scalar.
|
Hours |
Hours.negated()
Returns an instance with the amount negated.
|
static Hours |
Hours.of(int hours)
Obtains an
Hours representing a number of hours. |
static Hours |
Hours.parse(CharSequence text)
Obtains a
Hours from a text string such as PTnH. |
Hours |
Hours.plus(int hours)
Returns a copy of this amount with the specified number of hours added.
|
Hours |
Hours.plus(TemporalAmount amountToAdd)
Returns a copy of this amount with the specified amount added.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Hours.compareTo(Hours otherAmount)
Compares this amount to the specified
Hours. |
Copyright © 2010–2016 ThreeTen.org. All rights reserved.