mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
helper: Now uses Duration::formatHours
This commit is contained in:
parent
b59a90fd38
commit
35488e21e1
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ std::string intervalSummarize (const Rules& rules, const Interval& interval)
|
|||
out << "Recorded " << tags << '\n'
|
||||
<< " Started " << interval.range.start.toISOLocalExtended () << '\n'
|
||||
<< " Ended " << interval.range.end.toISOLocalExtended () << '\n'
|
||||
<< " Elapsed " << std::setw (19) << std::setfill (' ') << dur.format () << '\n';
|
||||
<< " Elapsed " << std::setw (19) << std::setfill (' ') << dur.formatHours () << '\n';
|
||||
}
|
||||
|
||||
// Interval open.
|
||||
|
@ -82,7 +82,7 @@ std::string intervalSummarize (const Rules& rules, const Interval& interval)
|
|||
|
||||
if (dur.toTime_t () > 10)
|
||||
out << " Current " << Datetime ().toISOLocalExtended () << '\n'
|
||||
<< " Elapsed " << std::setw (19) << std::setfill (' ') << dur.format () << '\n';
|
||||
<< " Elapsed " << std::setw (19) << std::setfill (' ') << dur.formatHours () << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue