TI-90: Make 'continue' accept a date

This commit is contained in:
Thomas Lauf 2017-11-10 20:49:02 +01:00
parent 74fa268164
commit a01b9ade9a

View file

@ -68,11 +68,16 @@ int CmdContinue (
to_copy = latest; to_copy = latest;
} }
Datetime current_time = Datetime (); auto filter = getFilter (cli);
Datetime current_time;
if (filter.range.start.toEpoch () != 0)
current_time = filter.range.start;
else
current_time = Datetime ();
if (latest.range.is_open ()) if (latest.range.is_open ())
{ {
auto filter = getFilter (cli);
auto exclusions = getAllExclusions (rules, filter.range); auto exclusions = getAllExclusions (rules, filter.range);
// Stop it, at the given start time, if applicable. // Stop it, at the given start time, if applicable.