mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Interval: Added ::_from accessors
This commit is contained in:
parent
61b04ff0e8
commit
a22f27afc2
2 changed files with 16 additions and 0 deletions
|
@ -28,6 +28,18 @@
|
|||
#include <Interval.h>
|
||||
#include <sstream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Datetime Interval::from () const
|
||||
{
|
||||
return _from;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Interval::from (Datetime& value)
|
||||
{
|
||||
_from = value;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Interval::dump () const
|
||||
{
|
||||
|
|
|
@ -35,6 +35,10 @@ class Interval
|
|||
{
|
||||
public:
|
||||
Interval () = default;
|
||||
|
||||
Datetime from () const;
|
||||
void from (Datetime&);
|
||||
|
||||
std::string dump () const;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue