operator + method

DateTime operator +(
  1. Duration other
)

Adds the given duration to the current date and time.

Implementation

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