Feature
- New 'modified' attribute, which contains the most recent modification date, if a modification has occurred.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user