Duration.opOpAssign
Duration opOpAssign(string op)(const Duration rhs) if (op == "+" || op == "-" || op == "%") ref nothrow @nogcAdds, 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 |
Parameters
rhs | The duration to add to or subtract from this Duration. |
Duration opOpAssign(string op)(const TickDuration rhs) if (op == "+" || op == "-") ref nothrow @nogcdeprecated
No documentation available for this declaration.
Multiplies/Divides the duration by an integer value as well as assigning the result to this Duration.
The legal types of arithmetic for Duration using this operator overload are
| Duration | * | long | --> | Duration |
| Duration | / | long | --> | Duration |
Parameters
value | The value to multiply/divide this Duration by. |