Duration.opBinaryRight

Duration opBinaryRight(string op, D)(D lhs) if ((op == "+" || op == "-") && is(immutable D == immutable TickDuration)) const nothrow @nogc
deprecated
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

Parameters

lhsThe TickDuration to add to this Duration or to subtract this Duration from.
Duration opBinaryRight(string op)(long value) if (op == "*") const nothrow @nogc

Multiplies an integral value and a Duration.

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

long * Duration --> Duration

Parameters

valueThe number of units to multiply this Duration by.