Duration.opBinaryRight
Duration opBinaryRight(string op, D)(D lhs) if ((op == "+" || op == "-") &&
is(immutable D == immutable TickDuration)) const nothrow @nogcdeprecated
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
lhs | The TickDuration to add to this Duration or to subtract this Duration from. |
Multiplies an integral value and a Duration.
The legal types of arithmetic for Duration using this operator overload are
| long | * | Duration | --> | Duration |
Parameters
value | The number of units to multiply this Duration by. |