plus static method

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

Adds the specified period to the date. Friendly alternative to operator+().

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

Returns: The sum of the given date and period

Implementation

static LocalDate plus(LocalDate date, Period period) => date.add(period);