operator - method

Duration operator -(
  1. DateTime other
)

Implementation

Duration operator -(DateTime other) {
  if (this <= other) {
    return Duration(
        milliseconds:
            (other.millisecondsSinceEpoch - millisecondsSinceEpoch));
  } else {
    return Duration(
        milliseconds:
            (millisecondsSinceEpoch - other.millisecondsSinceEpoch));
  }
}