mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-08 15:20:36 +02:00
Duration
- Renamed Duration object to OldDuration so that the two implementations can coexist in a binary.
This commit is contained in:
parent
9bfe40fac7
commit
18f03c25b4
20 changed files with 566 additions and 566 deletions
|
@ -293,7 +293,7 @@ int CmdInfo::execute (std::string& output)
|
|||
if (created.length ())
|
||||
{
|
||||
Date dt (strtol (created.c_str (), NULL, 10));
|
||||
age = Duration (now - dt).format ();
|
||||
age = OldDuration (now - dt).format ();
|
||||
}
|
||||
|
||||
view.set (row, 1, entry + " (" + age + ")");
|
||||
|
@ -311,7 +311,7 @@ int CmdInfo::execute (std::string& output)
|
|||
|
||||
Date mod (task->get_date ("modified"));
|
||||
|
||||
std::string age = Duration (now - mod).format ();
|
||||
std::string age = OldDuration (now - mod).format ();
|
||||
view.set (row, 1, Date (task->get_date ("modified")).toString (dateformat) +
|
||||
" (" + age + ")");
|
||||
}
|
||||
|
@ -337,7 +337,7 @@ int CmdInfo::execute (std::string& output)
|
|||
if (type == "date")
|
||||
value = Date (value).toString (dateformat);
|
||||
else if (type == "duration")
|
||||
value = Duration (value).formatCompact ();
|
||||
value = OldDuration (value).formatCompact ();
|
||||
|
||||
view.set (row, 1, value);
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ int CmdInfo::execute (std::string& output)
|
|||
{
|
||||
row = journal.addRow ();
|
||||
journal.set (row, 0, STRING_CMD_INFO_TOTAL_ACTIVE);
|
||||
journal.set (row, 1, Duration (total_time).formatPrecise (),
|
||||
journal.set (row, 1, OldDuration (total_time).formatPrecise (),
|
||||
(context.color () ? Color ("bold") : Color ()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue