Feature #43 - relative dates: +3d, -2w

- Now dates (due, wait, limit) are parsed first as Durations, and on
  error reparsed as Date.  When a Duration is found instead of a Date,
  the Duration is added to the current date/time.
This commit is contained in:
Paul Beckingham 2010-07-25 22:11:25 -04:00
parent 123a46eef9
commit 7468a2d81d
2 changed files with 34 additions and 2 deletions

View file

@ -2365,7 +2365,7 @@ int handleReportStats (std::string &outs)
}
if (it->getStatus () == Task::pending)
daysPending += (now - entry) / 86400.0;
daysPending += (now.toEpoch () - entry) / 86400.0;
descLength += it->get ("description").length ();