mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Interval: Added accessor for Daterange
This commit is contained in:
parent
288f911050
commit
041df5c77d
2 changed files with 7 additions and 0 deletions
|
@ -89,6 +89,12 @@ bool Interval::empty () const
|
||||||
_tags.size () == 0;
|
_tags.size () == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Daterange Interval::range () const
|
||||||
|
{
|
||||||
|
return _range;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
Datetime Interval::start () const
|
Datetime Interval::start () const
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,6 +37,7 @@ public:
|
||||||
Interval () = default;
|
Interval () = default;
|
||||||
void initialize (const std::string&);
|
void initialize (const std::string&);
|
||||||
bool empty () const;
|
bool empty () const;
|
||||||
|
Daterange range () const;
|
||||||
|
|
||||||
Datetime start () const;
|
Datetime start () const;
|
||||||
void start (Datetime);
|
void start (Datetime);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue