description

# operator ~/ method

Duration operator ~/(

1. int quotient

)

One-`quotient`th of this duration.

Divides the offset in microseconds of this duration by `quotient` rounding towards zero, and provides a new `Duration` with that as its inMicroseconds.

The `quotient` must not be `0`. If it is negative, the result is equivalent to dividing by the absolute value and then negating.

## Implementation

    Duration operator ~/(int quotient) {
      // By doing the check here instead of relying on "~/" below we get the
      // exception even with dart2js.
      if (quotient == 0) throw IntegerDivisionByZeroException();
      return Duration._microseconds(inMicroseconds ~/ quotient);
    }