Obtains a copy of this period multiplied by the scalar.
Obtains a copy of this period multiplied by the scalar.
- if numeric overflow occurs
Obtains a copy of this period with the specified period added.
Obtains a copy of this period with the specified period added.
- if numeric overflow occurs
Obtains a copy of this period with the specified period subtracted.
Obtains a copy of this period with the specified period subtracted.
- if numeric overflow occurs
Obtains an instance of this type with each amount in this period negated.
Obtains an instance of this type with each amount in this period negated. For example, a period of "2 years, -3 months and 4 days" will be negated to "-2 years, 3 months and -4 days". No normalization is performed.
- if numeric overflow occurs, which only happens if one of the units has the value Long.MIN_VALUE
(periodOps: StringAdd).+(other)
(periodOps: StringAdd).self
(periodOps: StringFormat).self
(periodOps: ArrowAssoc[PeriodOps]).x
(Since version 2.10.0) Use leftOfArrow
instead
(periodOps: Ensuring[PeriodOps]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Enriches a Period with scala friendly methods.