Duration.opBinaryRight

TickDuration is Deprecated

Adds or subtracts two durations.

The legal types of arithmetic for Duration using this operator are

TickDuration+Duration-->Duration
TickDuration-Duration-->Duration
  1. Duration opBinaryRight(D lhs)
    struct Duration
    @safe pure deprecated const nothrow @nogc
    opBinaryRight
    (
    string op
    D
    )
    (
    D lhs
    )
    if (
    (
    op == "+" ||
    op == "-"
    )
    &&
    is(immutable D == immutable TickDuration)
    )
  2. Duration opBinaryRight(long value)

Parameters

lhs D

The TickDuration to add to this Duration or to subtract this Duration from.

Meta