Obtains a copy of this duration multiplied by the scalar.
Obtains a copy of this duration multiplied by the scalar.
ArithmeticException
- if numeric overflow occurs
Obtains a copy of this duration with a duration added measured in terms of the specified unit.
Obtains a copy of this duration with a duration added measured in terms of the specified unit.
ArithmeticException
- if numeric overflow occurs
UnsupportedTemporalTypeException
- if the unit is not supported
Obtains a copy of this duration with the specified duration added.
Obtains a copy of this duration with the specified duration added.
ArithmeticException
- if numeric overflow occurs
Obtains a copy of this duration with a duration subtracted measured in terms of the specified unit.
Obtains a copy of this duration with a duration subtracted measured in terms of the specified unit.
ArithmeticException
- if numeric overflow occurs
UnsupportedTemporalTypeException
- if the unit is not supported
Obtains a copy of this duration with the specified duration subtracted.
Obtains a copy of this duration with the specified duration subtracted.
ArithmeticException
- if numeric overflow occurs
Obtains a copy of this amount divided by the divisor.
Obtains a copy of this amount divided by the divisor.
ArithmeticException
- if numeric overflow occurs
Swaps the sign of the total length of this duration.
Swaps the sign of the total length of this duration. For example, PT1.3S will be returned as PT-1.3S.
ArithmeticException
- if numeric overflow occurs
(durationOps: any2stringadd[DurationOps]).+(other)
Enriches a Duration with scala friendly methods.