The OpenD Programming Language

TimeOfDay.opOpAssign

Gives the result of adding or subtracting a core.time.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
struct TimeOfDay
ref @safe pure nothrow @nogc
opOpAssign
(
string op
)
if (
op == "+" ||
op == "-"
)

Parameters

duration Duration

The core.time.Duration to add to or subtract from this TimeOfDay.

Meta