operator - method

LocalDate operator -(
  1. Period period
)

Subtracts the specified period from the date. This is a convenience operator over the Minus(Period) method.

  • this: The date to subtract the period from
  • period: The period to subtract. Must not contain any (non-zero) time units.

Returns: The result of subtracting the given period from the date

Implementation

LocalDate operator -(Period period) => subtract(period);