minus static method
Subtracts the specified period from the date. Friendly alternative to operator-()
.
date
: The date to subtract the period fromperiod
: 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);