diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-02-05 18:09:49 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-02-05 18:09:49 -0600 |
commit | bf68bbe34cf8a8769345d1f36cc09cdc5d0ae07c (patch) | |
tree | 489206583514d4cf640c54d62458e98969a92001 /include/datetime | |
parent | dfd4f783102a0ca98b994fb80153e8accd3721ad (diff) | |
download | ayatana-indicator-datetime-bf68bbe34cf8a8769345d1f36cc09cdc5d0ae07c.tar.gz ayatana-indicator-datetime-bf68bbe34cf8a8769345d1f36cc09cdc5d0ae07c.tar.bz2 ayatana-indicator-datetime-bf68bbe34cf8a8769345d1f36cc09cdc5d0ae07c.zip |
another pass at removing alarms from the menu once they're no longer upcoming. This version fixes the header's icon as well.
Diffstat (limited to 'include/datetime')
-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 2ad7856..b054a1f 100644 --- a/include/datetime/date-time.h +++ b/include/datetime/date-time.h @@ -41,6 +41,7 @@ public: DateTime& operator=(GDateTime* in); DateTime& operator=(const DateTime& in); DateTime to_timezone(const std::string& zone) const; + DateTime add_full(int years, int months, int days, int hours, int minutes, double seconds) const; void reset(GDateTime* in=nullptr); GDateTime* get() const; @@ -48,9 +49,11 @@ public: std::string format(const std::string& fmt) const; int day_of_month() const; + double seconds() const; int64_t to_unix() const; bool operator<(const DateTime& that) const; + bool operator<=(const DateTime& that) const; bool operator!=(const DateTime& that) const; bool operator==(const DateTime& that) const; |