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 /src/date-time.cpp | |
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 'src/date-time.cpp')
-rw-r--r-- | src/date-time.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/date-time.cpp b/src/date-time.cpp index a1c1d1b..a139ea9 100644 --- a/src/date-time.cpp +++ b/src/date-time.cpp @@ -174,6 +174,11 @@ bool DateTime::operator==(const DateTime& that) const return g_date_time_compare(get(), that.get()) == 0; } +int64_t DateTime::operator- (const DateTime& that) const +{ + return g_date_time_difference(get(), that.get()); +} + bool DateTime::is_same_day(const DateTime& a, const DateTime& b) { // it's meaningless to compare uninitialized dates |