mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Daterange: Added ::operator==
This commit is contained in:
parent
3e404b7f57
commit
5906f9314a
2 changed files with 8 additions and 0 deletions
|
@ -34,6 +34,13 @@ Daterange::Daterange (const Datetime& start, const Datetime& end)
|
||||||
_end = end;
|
_end = end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
bool Daterange::operator== (const Daterange& other)
|
||||||
|
{
|
||||||
|
return _start == other._start &&
|
||||||
|
_end == other._end;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
Datetime Daterange::start () const
|
Datetime Daterange::start () const
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,6 +34,7 @@ class Daterange
|
||||||
public:
|
public:
|
||||||
Daterange () = default;
|
Daterange () = default;
|
||||||
Daterange (const Datetime&, const Datetime&);
|
Daterange (const Datetime&, const Datetime&);
|
||||||
|
bool operator== (const Daterange&);
|
||||||
|
|
||||||
Datetime start () const;
|
Datetime start () const;
|
||||||
void start (const Datetime&);
|
void start (const Datetime&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue