add method

LocalDateTime add(
  1. Period period
)

Adds a period to this local date/time. Fields are added in the order provided by the period.

  • period: Period to add

Returns: The resulting local date and time

Implementation

LocalDateTime add(Period period) {
  Preconditions.checkNotNull(period, 'period');
  return IPeriod.addDateTimeTo(period, calendarDate, clockTime, 1);
}