operator + method

LocalDateTime operator +(
  1. Period period
)

Adds a period to a local date/time. Fields are added in the order provided by the period. This is a convenience operator over the add method.

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

Returns: The resulting local date and time

Implementation

LocalDateTime operator +(Period period) => add(period);