Duration.opOpAssign

Multiplies/Divides the duration by an integer value as well as assigning the result to this Duration.

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

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

Parameters

value
Type: long

The value to multiply/divide this Duration by.

Suggestion Box / Bug Report