mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +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
|
@ -149,7 +149,7 @@ std::string CmdEdit::formatDuration (
|
|||
std::string value = task.get (attribute);
|
||||
if (value.length ())
|
||||
{
|
||||
Duration dur (value);
|
||||
OldDuration dur (value);
|
||||
value = dur.formatSeconds ();
|
||||
}
|
||||
|
||||
|
@ -534,7 +534,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string
|
|||
{
|
||||
if (value != "")
|
||||
{
|
||||
Duration d;
|
||||
OldDuration d;
|
||||
if (d.valid (value))
|
||||
{
|
||||
context.footnote (STRING_EDIT_RECUR_MOD);
|
||||
|
@ -710,7 +710,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string
|
|||
}
|
||||
else if (type == "duration")
|
||||
{
|
||||
Duration d (value);
|
||||
OldDuration d (value);
|
||||
task.set (col->first, (time_t) d);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue