Navigation
Synopsis Split an existing datetime into a tuple with the date and the time.
Function tuple[datetime date, datetime time] splitDateTime(datetime dt)
Usage import DateTime;
Examples
rascal>import DateTime;
ok
rascal>N = now();
datetime: $2014-02-14T09:30:23.904+01:00$
rascal>splitDateTime(N);
tuple[datetime date,datetime time]: <2014-02-14,$T09:30:23.904+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.