Navigation
Synopsis Decrement the seconds by a given amount or by 1.
Function
  1. datetime decrementSeconds(datetime dt, int n)
  2. datetime decrementSeconds(datetime dt)
Usage import DateTime;
Examples
rascal>import DateTime;
ok
rascal>N = now();
datetime: $2014-10-28T10:39:41.631+00:00$
rascal>decrementSeconds(N);
datetime: $2014-10-28T10:39:40.631+00:00$
rascal>decrementSeconds(N, 5);
datetime: $2014-10-28T10:39:36.631+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.