Duration.opBinary

Multiplies or divides the duration by an integer value.

The legal types of arithmetic for Duration using this operator overload are

Duration*long-->Duration
Duration/long-->Duration
  1. Duration opBinary(D rhs)
  2. Duration opBinary(long value)
    struct Duration
    @safe pure
    opBinary
    const nothrow @nogc
    (
    string op
    )
    (
    long value
    )
    if (
    op == "*" ||
    op == "/"
    )
  3. long opBinary(Duration rhs)

Parameters

value
Type: long

The value to multiply this Duration by.

Suggestion Box / Bug Report