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