Date.opOpAssign

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

The legal types of arithmetic for Date using this operator are

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

Parameters

duration Duration

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

Suggestion Box / Bug Report