- New 'modified' attribute, which contains the most recent modification date,
  if a modification has occurred.
This commit is contained in:
Paul Beckingham 2012-09-27 00:56:41 -04:00
parent 8d8bd653fa
commit bb167b2275
12 changed files with 139 additions and 4 deletions

View file

@ -218,6 +218,14 @@ void Task::setStart ()
recalc_urgency = true;
}
////////////////////////////////////////////////////////////////////////////////
void Task::setModified ()
{
char now[16];
sprintf (now, "%u", (unsigned int) time (NULL));
set ("modified", now);
}
////////////////////////////////////////////////////////////////////////////////
bool Task::has (const std::string& name) const
{