long |
Duration.get(TemporalUnit unit) |
Gets the value of the requested unit.
|
long |
Period.get(TemporalUnit unit) |
Gets the value of the requested unit.
|
boolean |
Instant.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
boolean |
LocalDate.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
boolean |
LocalDateTime.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
boolean |
LocalTime.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
boolean |
OffsetDateTime.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
boolean |
OffsetTime.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
boolean |
Year.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
boolean |
YearMonth.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
boolean |
ZonedDateTime.isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
Duration |
Duration.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this duration with the specified duration subtracted.
|
Instant |
Instant.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this instant with the specified amount subtracted.
|
LocalDate |
LocalDate.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this date with the specified amount subtracted.
|
LocalDateTime |
LocalDateTime.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this date-time with the specified amount subtracted.
|
LocalTime |
LocalTime.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this time with the specified amount subtracted.
|
OffsetDateTime |
OffsetDateTime.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this date-time with the specified amount subtracted.
|
OffsetTime |
OffsetTime.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this time with the specified amount subtracted.
|
Year |
Year.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this year with the specified amount subtracted.
|
YearMonth |
YearMonth.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this year-month with the specified amount subtracted.
|
ZonedDateTime |
ZonedDateTime.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this date-time with the specified amount subtracted.
|
static Duration |
Duration.of(long amount,
TemporalUnit unit) |
Obtains a Duration representing an amount in the specified unit.
|
Duration |
Duration.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this duration with the specified duration added.
|
Instant |
Instant.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this instant with the specified amount added.
|
LocalDate |
LocalDate.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this date with the specified amount added.
|
LocalDateTime |
LocalDateTime.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this date-time with the specified amount added.
|
LocalTime |
LocalTime.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this time with the specified amount added.
|
OffsetDateTime |
OffsetDateTime.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this date-time with the specified amount added.
|
OffsetTime |
OffsetTime.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this time with the specified amount added.
|
Year |
Year.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this year with the specified amount added.
|
YearMonth |
YearMonth.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this year-month with the specified amount added.
|
ZonedDateTime |
ZonedDateTime.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this date-time with the specified amount added.
|
Duration |
Duration.truncatedTo(TemporalUnit unit) |
Returns a copy of this Duration truncated to the specified unit.
|
Instant |
Instant.truncatedTo(TemporalUnit unit) |
Returns a copy of this Instant truncated to the specified unit.
|
LocalDateTime |
LocalDateTime.truncatedTo(TemporalUnit unit) |
Returns a copy of this LocalDateTime with the time truncated.
|
LocalTime |
LocalTime.truncatedTo(TemporalUnit unit) |
Returns a copy of this LocalTime with the time truncated.
|
OffsetDateTime |
OffsetDateTime.truncatedTo(TemporalUnit unit) |
Returns a copy of this OffsetDateTime with the time truncated.
|
OffsetTime |
OffsetTime.truncatedTo(TemporalUnit unit) |
Returns a copy of this OffsetTime with the time truncated.
|
ZonedDateTime |
ZonedDateTime.truncatedTo(TemporalUnit unit) |
Returns a copy of this ZonedDateTime with the time truncated.
|
long |
Instant.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another instant in terms of the specified unit.
|
long |
LocalDate.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another date in terms of the specified unit.
|
long |
LocalDateTime.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another date-time in terms of the specified unit.
|
long |
LocalTime.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another time in terms of the specified unit.
|
long |
OffsetDateTime.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another date-time in terms of the specified unit.
|
long |
OffsetTime.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another time in terms of the specified unit.
|
long |
Year.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another year in terms of the specified unit.
|
long |
YearMonth.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another year-month in terms of the specified unit.
|
long |
ZonedDateTime.until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another date-time in terms of the specified unit.
|