mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
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:
parent
123a46eef9
commit
7468a2d81d
2 changed files with 34 additions and 2 deletions
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue