Duration.opBinary
Duration opBinary(string op)(const Duration rhs) if (op == "+" || op == "-" || op == "%") const nothrow @nogcAdds, subtracts or calculates the modulo of two durations.
The legal types of arithmetic for Duration using this operator are
| Duration | + | Duration | --> | Duration |
| Duration | - | Duration | --> | Duration |
| Duration | % | Duration | --> | Duration |
Parameters
rhs | The duration to add to or subtract from this Duration. |
Duration opBinary(string op)(const TickDuration rhs) if (op == "+" || op == "-") const nothrow @nogcdeprecated
No documentation available for this declaration.
Multiplies or divides the duration by an integer value.
The legal types of arithmetic for Duration using this operator overload are
| Duration | * | long | --> | Duration |
| Duration | / | long | --> | Duration |
Parameters
value | The value to multiply this Duration by. |
Divides two durations.
The legal types of arithmetic for Duration using this operator are
| Duration | / | Duration | --> | long |
Parameters
rhs | The duration to divide this Duration by. |