aboutsummaryrefslogtreecommitdiff
path: root/src/date-time.cpp
Commit message (Collapse)AuthorAgeFilesLines
* in DateTime class, make it harder to accidentally mix local and nonlocal ↵Charles Kerr2015-04-061-4/+14
| | | | timezones by replacing DateTime::DateTime(time_t) with two methods, DateTime::Local(time_t) and DateTime(GTimeZone*, time_t)
* make DateTime::is_same_day() fasterCharles Kerr2015-04-051-4/+6
|
* add the new Alarm class as an argument to the alarm queue classCharles Kerr2015-04-031-0/+10
|
* add DateTime::end_of_month(), DateTime::end_of_day(). Add unit tests for them.Charles Kerr2015-03-161-18/+42
|
* in DateTime::is_set(), include timezone testCharles Kerr2015-03-161-2/+0
|
* in DateTime::DateTime(GTimeZone*,GDateTime*), don't allow either argument to ↵Charles Kerr2015-03-161-23/+9
| | | | be nullptr
* in DateTime::Local() and DateTime::NowLocal(), avoid redundant construction ↵Charles Kerr2015-03-141-2/+2
| | | | of the local timezone.
* Add DateTime::start_of_day() to use instead of the add_hours(-hours()) ↵Charles Kerr2015-03-141-13/+64
| | | | | | | trick, which doesn't work on days when DST changes. Implementing this requires DateTime objects to keep their own GTimeZone pointer, since the one inside GDateTime is private and can't be used for DateTime::start_of_day()'s call to g_date_time_new(). As a result the public API of DateTime changes, since we'll need a GTimeZone when constructing or assigning from a GDateTime pointer.
* hw alarmsCharles Kerr2014-04-241-0/+5
|
* decouple the planner's states; need three separate sets: upcoming-now (for ↵Charles Kerr2014-03-091-2/+25
| | | | alarms in the current time), upcoming-calendar (to show events coming from the selected calendar date), and calendar-month (all the appointments in the month displayed in the menu).
* in DateTime::format(), don't assign NULL to a std::stringCharles Kerr2014-02-261-3/+9
|
* another pass at removing alarms from the menu once they're no longer ↵Charles Kerr2014-02-051-0/+18
| | | | upcoming. This version fixes the header's icon as well.
* as per review, don't inline unless there are performance issuesCharles Kerr2014-01-301-0/+17
|
* Alarms is going to need to know when the clock's minute changes. We already ↵Charles Kerr2014-01-221-40/+25
| | | | have a timer for that in Formatter, so move it from there to Clock and add a corresponding public signal Clock.minuteChanged that both Formatter and Alarms can use. Sync unit tests.
* move DateTime's impl from the header to a cc fileCharles Kerr2014-01-221-0/+157