SysTime.opOpAssign

SysTime opOpAssign(string op)(Duration duration) if (op == "+" || op == "-") ref @safe pure nothrow scope

Gives the result of adding or subtracting a Duration from this SysTime, as well as assigning the result to this SysTime.

The legal types of arithmetic for SysTime using this operator are

SysTime + Duration --> SysTime
SysTime - Duration --> SysTime

Parameters

durationThe Duration to add to or subtract from this SysTime.