SysTime.opBinary

SysTime opBinary(string op)(Duration duration) if (op == "+" || op == "-") @safe const pure nothrow return scope

Gives the result of adding or subtracting a Duration from this SysTime.

The legal types of arithmetic for SysTime using this operator are

Parameters

durationThe Duration to add to or subtract from this SysTime.
Duration opBinary(string op)(SysTime rhs) if (op == "-") @safe const pure nothrow scope

Gives the difference between two SysTimes.

The legal types of arithmetic for SysTime using this operator are