Synopsis Return the difference between two dates and/or datetimes in days.
Function int daysDiff(datetime begin, datetime end)
Usage import DateTime;
rascal>import DateTime;
rascal>B = now();
datetime: $2014-02-14T09:30:20.112+01:00$
rascal>E = incrementDays(B, 2);
datetime: $2014-02-16T09:30:20.112+01:00$
rascal>daysDiff(B, E);
int: 2
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