operator + method

DateTime operator +(
  1. Duration duration
)

Adds this DateTime and Duration and returns the sum as a new DateTime object.

Implementation

DateTime operator +(Duration duration) => add(duration);