Navigation
Synopsis Increment the days by given amount or by 1.
Function
  1. datetime incrementDays(datetime dt, int n)
  2. datetime incrementDays(datetime dt)
Usage import DateTime;
Examples
rascal>import DateTime;
ok
rascal>N = now();
datetime: $2014-02-14T09:30:21.299+01:00$
rascal>incrementDays(N);
datetime: $2014-02-15T09:30:21.299+01:00$
rascal>incrementDays(N, 5);
datetime: $2014-02-19T09:30:21.299+01:00$
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.