Package | Description |
---|---|
java.time |
The main API for dates, times, instants, and durations.
|
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 | Class and Description |
---|---|
class |
Duration
A duration between two instants on the time-line.
|
class |
Period
A period of time, measured using the most common units, such as '3 Months, 4 Days and 7 Hours'.
|
Modifier and Type | Method and Description |
---|---|
Instant |
Instant.plus(TemporalAdder adder)
Returns an object of the same type as this object with an amount added.
|
LocalTime |
LocalTime.plus(TemporalAdder adder)
Returns a copy of this date with the specified period added.
|
LocalDateTime |
LocalDateTime.plus(TemporalAdder adder)
Returns a copy of this date-time with the specified period added.
|
LocalDate |
LocalDate.plus(TemporalAdder adder)
Returns a copy of this date with the specified period added.
|
ZonedDateTime |
ZonedDateTime.plus(TemporalAdder adder)
Returns a copy of this date-time with the specified period added.
|
Modifier and Type | Class and Description |
---|---|
class |
SimplePeriod
A period of time, measured as an amount of a single unit, such as '3 Months'.
|
Modifier and Type | Method and Description |
---|---|
default Temporal |
Temporal.plus(TemporalAdder adder)
Returns an object of the same type as this object with an amount added.
|
default ChronoLocalDate<C> |
ChronoLocalDate.plus(TemporalAdder adder)
Returns an object of the same type as this object with an amount added.
|
OffsetDate |
OffsetDate.plus(TemporalAdder adder)
Returns a copy of this date with the specified period added.
|
YearMonth |
YearMonth.plus(TemporalAdder adder)
Returns a copy of this year-month with the specified period added.
|
OffsetDateTime |
OffsetDateTime.plus(TemporalAdder adder)
Returns a copy of this date-time with the specified period added.
|
default ChronoLocalDateTime<C> |
ChronoLocalDateTime.plus(TemporalAdder adder)
Returns an object of the same type as this object with an amount added.
|
default ChronoZonedDateTime<C> |
ChronoZonedDateTime.plus(TemporalAdder adder)
Returns an object of the same type as this object with an amount added.
|
OffsetTime |
OffsetTime.plus(TemporalAdder adder)
Returns a copy of this date with the specified period added.
|
Year |
Year.plus(TemporalAdder adder)
Returns a copy of this year with the specified period added.
|