mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdBurndown: Converted from ISO8601 to Duration
This commit is contained in:
parent
86d3ec5cee
commit
6b55c54af9
1 changed files with 4 additions and 3 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <Context.h>
|
||||
#include <Filter.h>
|
||||
#include <ISO8601.h>
|
||||
#include <Duration.h>
|
||||
#include <main.h>
|
||||
#include <i18n.h>
|
||||
#include <shared.h>
|
||||
|
@ -838,14 +839,14 @@ void Chart::calculateRates ()
|
|||
rate_message << "Chart::calculateRates Net reduction is "
|
||||
<< (_peak_count - _current_count)
|
||||
<< " tasks in "
|
||||
<< ISO8601p (now.toEpoch () - _peak_epoch).format ()
|
||||
<< Duration (now.toEpoch () - _peak_epoch).formatISO ()
|
||||
<< " = "
|
||||
<< _net_fix_rate
|
||||
<< " tasks/d";
|
||||
context.debug (rate_message.str ());
|
||||
|
||||
ISO8601p delta (static_cast <time_t> (_current_count / fix_rate));
|
||||
ISO8601d end = now + delta;
|
||||
Duration delta (static_cast <time_t> (_current_count / fix_rate));
|
||||
ISO8601d end = now + delta.toTime_t ();
|
||||
|
||||
// Prefer dateformat.report over dateformat.
|
||||
std::string format = context.config.get ("dateformat.report");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue