plus
Adds two DateTimePeriod instances.
Throws
if arithmetic overflow happens.
Adds two DatePeriod instances.
Throws
if arithmetic overflow happens.
Returns an instant that is the result of adding the value number of the specified unit to this instant.
If the value is positive, the returned instant is later than this instant. If the value is negative, the returned instant is earlier than this instant.
The return value is clamped to the platform-specific boundaries for Instant if the result exceeds them.
Returns an instant that is the result of adding components of DateTimePeriod to this instant. The components are added in the order from the largest units to the smallest, i.e. from years to nanoseconds.
Throws
if this value or the results of intermediate computations are too large to fit in LocalDateTime.
Returns an instant that is the result of adding the value number of the specified unit to this instant in the specified timeZone.
If the value is positive, the returned instant is later than this instant. If the value is negative, the returned instant is earlier than this instant.
Throws
if this value or the result is too large to fit in LocalDateTime.
Returns a date that is the result of adding components of DatePeriod to this date. The components are added in the order from the largest units to the smallest, i.e. from years to days.
See also
Throws
if this value or the results of intermediate computations are too large to fit in LocalDate.
Returns a LocalDate that is the result of adding the value number of the specified unit to this date.
If the value is positive, the returned date is later than this date. If the value is negative, the returned date is earlier than this date.
Throws
if the result exceeds the boundaries of LocalDate.