Date.opOpAssign

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

Gives the result of adding or subtracting a 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

Parameters

durationThe Duration to add to or subtract from this Date.