Add a duration (in Days) to a Date

Adam D. Ruppe destructionator at gmail.com
Wed Nov 13 17:26:09 UTC 2019


On Wednesday, 13 November 2019 at 17:23:42 UTC, Mil58 wrote:
> In the following example, i would to add the "diff" value (in 
> days) to a certain date (or the today's date "auj") >>

just use the plus operator

auto newTime = Clock.currTime() + 5.days



More information about the Digitalmars-d-learn mailing list