plus static method

LocalDateTime plus(
  1. LocalDateTime localDateTime,
  2. Period period
)

Add the specified period to the date and time. Friendly alternative to operator+().

  • localDateTime: Initial local date and time
  • period: Period to add

Returns: The resulting local date and time

Implementation

static LocalDateTime plus(LocalDateTime localDateTime, Period period) => localDateTime.add(period);