GeezerVison is showing docs.oracle.com — Temporal (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.time.temporal
Interface Temporal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
| Modifier and Type |
Method |
Description |
boolean |
isSupported(TemporalUnit unit) |
Checks if the specified unit is supported.
|
default Temporal |
minus(long amountToSubtract,
TemporalUnit unit) |
Returns an object of the same type as this object with the specified period subtracted.
|
default Temporal |
minus(TemporalAmount amount) |
Returns an object of the same type as this object with an amount subtracted.
|
Temporal |
plus(long amountToAdd,
TemporalUnit unit) |
Returns an object of the same type as this object with the specified period added.
|
default Temporal |
plus(TemporalAmount amount) |
Returns an object of the same type as this object with an amount added.
|
long |
until(Temporal endExclusive,
TemporalUnit unit) |
Calculates the amount of time until another temporal in terms of the specified unit.
|
default Temporal |
with(TemporalAdjuster adjuster) |
Returns an adjusted object of the same type as this object with the adjustment made.
|
Temporal |
with(TemporalField field,
long newValue) |
Returns an object of the same type as this object with the specified field altered.
|
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|