TimeOfDay.opOpAssign

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

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

The legal types of arithmetic for TimeOfDay using this operator are

TimeOfDay + Duration --> TimeOfDay
TimeOfDay - Duration --> TimeOfDay

Parameters

durationThe Duration to add to or subtract from this TimeOfDay.