Obtains an object of the same type as this object with an amount added.
Obtains an object of the same type as this object with an amount added.
ArithmeticException
- if numeric overflow occurs.
DateTimeException
- if the unit cannot be added.
UnsupportedTemporalTypeException
- if the unit is not supported.
Obtains an object of the same type as this object with an amount added.
Obtains an object of the same type as this object with an amount added.
ArithmeticException
- if numeric overflow occurs.
DateTimeException
- if the addition cannot be made.
Obtains an object of the same type as this object with an amount subtracted.
Obtains an object of the same type as this object with an amount subtracted.
ArithmeticException
- if numeric overflow occurs
DateTimeException
- if the unit cannot be subtracted
UnsupportedTemporalTypeException
- if the unit is not supported
Obtains an object of the same type as this object with an amount subtracted.
Obtains an object of the same type as this object with an amount subtracted.
ArithmeticException
- if numeric overflow occurs
DateTimeException
- if the subtraction cannot be made
Calculates the amount of time until this temporal in terms of the specified unit.
Calculates the amount of time until this temporal in terms of the specified unit.
ArithmeticException
- if numeric overflow occurs.
DateTimeException
- if the amount cannot be calculated, or the end temporal cannot be converted
to the same type as this temporal.
UnsupportedTemporalTypeException
- if the unit is not supported.
Obtains an adjusted object of the same type as this object with the adjustment made.
Obtains an adjusted object of the same type as this object with the adjustment made.
ArithmeticException
- if numeric overflow occurs
DateTimeException
- if the field cannot be set
UnsupportedTemporalTypeException
- if the field is not supported
Obtains an adjusted object of the same type as this object with the adjustment made.
Obtains an adjusted object of the same type as this object with the adjustment made.
ArithmeticException
- if numeric overflow occurs
DateTimeException
- if unable to make the adjustment
(temporalOps: any2stringadd[TemporalOps]).+(other)
Enriches a Temporal with additional methods.