operator - method

Duration operator -(
  1. DateTime other
)

Returns the Duration between this and other.

The returned Duration will be negative if other occurs after this.

Alias for DateTime.difference.

Implementation

Duration operator -(DateTime other) => difference(other);