mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Filter, Timeline: Converted from a pair of Datetime objects to a Daterange
This commit is contained in:
parent
590aab02b9
commit
a4ed7c9def
6 changed files with 48 additions and 72 deletions
|
@ -49,15 +49,9 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Timeline::start (const Datetime& when)
|
||||
void Timeline::range (const Daterange& range)
|
||||
{
|
||||
_range.start (when);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Timeline::end (const Datetime& when)
|
||||
{
|
||||
_range.end (when);
|
||||
_range = range;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -102,7 +96,7 @@ std::string Timeline::dump () const
|
|||
{
|
||||
std::stringstream out;
|
||||
|
||||
out << "Timeline _range " << _range.dump ();
|
||||
out << "Timeline _range " << _range.start ().toISO () << " - " << _range.end ().toISO () << "\n";
|
||||
for (auto& i : _inclusions)
|
||||
out << " " << i.dump ();
|
||||
for (auto& e : _exclusions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue