Synopsis Given two datetime values, create an interval.
Function interval createInterval(datetime begin, datetime end)
Usage import DateTime;
rascal>import DateTime;
rascal>B = now();
datetime: $2014-10-28T10:39:41.180+00:00$
rascal>E = incrementDays(B, 2);
datetime: $2014-10-30T10:39:41.180+00:00$
rascal>createInterval(B, E);
interval: Interval($2014-10-28T10:39:41.180+00:00$,$2014-10-30T10:39:41.180+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