diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-04-24 22:34:42 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-04-24 22:34:42 -0500 |
commit | a396e6af3cd16530202f6cbecbd45c7a3f6ac893 (patch) | |
tree | 8c97c9827b21e19cf95df0ae6125a4bd01f169e9 /include/datetime/date-time.h | |
parent | cff541acfef717aae4c9b696627b4817e7eac851 (diff) | |
download | ayatana-indicator-datetime-a396e6af3cd16530202f6cbecbd45c7a3f6ac893.tar.gz ayatana-indicator-datetime-a396e6af3cd16530202f6cbecbd45c7a3f6ac893.tar.bz2 ayatana-indicator-datetime-a396e6af3cd16530202f6cbecbd45c7a3f6ac893.zip |
hw alarms
Diffstat (limited to 'include/datetime/date-time.h')
-rw-r--r-- | include/datetime/date-time.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/datetime/date-time.h b/include/datetime/date-time.h index f861c2e..490ed40 100644 --- a/include/datetime/date-time.h +++ b/include/datetime/date-time.h @@ -61,10 +61,13 @@ public: bool operator<=(const DateTime& that) const; bool operator!=(const DateTime& that) const; bool operator==(const DateTime& that) const; + int64_t operator- (const DateTime& that) const; static bool is_same_day(const DateTime& a, const DateTime& b); static bool is_same_minute(const DateTime& a, const DateTime& b); + bool is_set() const { return m_dt.get() != nullptr; } + private: std::shared_ptr<GDateTime> m_dt; }; |