Duration.opOpAssign

Adds, subtracts or calculates the modulo of two durations as well as assigning the result to this Duration.

The legal types of arithmetic for Duration using this operator are

Duration+Duration-->Duration
Duration-Duration-->Duration
Duration%Duration-->Duration
  1. Duration opOpAssign(Duration rhs)
    struct Duration
    @safe pure ref nothrow @nogc
    opOpAssign
    (
    string op
    )
    ()
    if (
    op == "+" ||
    op == "-"
    ||
    op == "%"
    )
  2. Duration opOpAssign(long value)

Parameters

rhs Duration

The duration to add to or subtract from this Duration.

Meta