The OpenD Programming Language

DateTime.opOpAssign

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

The legal types of arithmetic for DateTime using this operator are

DateTime+duration-->DateTime
DateTime-duration-->DateTime
struct DateTime
ref @safe pure nothrow @nogc
opOpAssign
(
string op
)
if (
op == "+" ||
op == "-"
)

Parameters

duration Duration

The duration to add to or subtract from this DateTime.

Meta