Navigation
Synopsis Increment the months by a given amount or by 1.
Usage import DateTime;
Examples
rascal>import DateTime;
ok
rascal>N = now();
datetime: $2014-10-28T10:39:41.921+00:00$
rascal>incrementMonths(N);
datetime: $2014-11-28T10:39:41.921+00:00$
rascal>incrementMonths(N, 5);
datetime: $2015-03-28T10:39:41.921+00: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.