difference method

Duration difference(
  1. Instant other
)

Returns a Duration with the difference when subtracting other from this.

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

Implementation

Duration difference(Instant other) => sinceEpoch - other.sinceEpoch;