Navigation
Synopsis Return the difference between two dates and/or datetimes in days.
Function int daysDiff(datetime begin, datetime end)
Usage import DateTime;
Examples
rascal>import DateTime;
ok
rascal>B = now();
datetime: $2014-10-28T10:39:41.325+00:00$
rascal>E = incrementDays(B, 2);
datetime: $2014-10-30T10:39:41.325+00: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 ask.rascal-mpl.org.