minus static method

LocalDate minus(
  1. LocalDate date,
  2. Period period
)

Subtracts the specified period from the date. Friendly alternative to operator-().

  • date: 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

static LocalDate minus(LocalDate date, Period period) => date.subtract(period);