operator - method

DateTime operator -(
  1. Duration duration
)

Subtracts the Duration from this DateTime returns the difference as a new DateTime object.

Implementation

DateTime operator -(Duration duration) => subtract(duration);