Package | Description |
---|---|
java.time.temporal |
Access to date and time using fields and units, additional value type classes and
base support for calendar systems other than the default ISO.
|
Modifier and Type | Method and Description |
---|---|
SimplePeriod |
SimplePeriod.abs()
Returns a copy of this period with a positive amount.
|
<R extends Temporal> |
ChronoUnit.between(R dateTime1,
R dateTime2) |
<R extends Temporal> |
TemporalUnit.between(R dateTime1,
R dateTime2)
Calculates the period in terms of this unit between two temporal objects of the same type.
|
static SimplePeriod |
SimplePeriod.of(long amount,
TemporalUnit unit)
Obtains an instance of
SimplePeriod from a period in the specified unit. |
Modifier and Type | Method and Description |
---|---|
int |
SimplePeriod.compareTo(SimplePeriod other)
Compares this
SimplePeriod to another period. |