~indicator-applet-developers/indicator-datetime/trunk.14.04

« back to all changes in this revision

Viewing changes to include/datetime/date-time.h

  • Committer: CI bot
  • Author(s): Charles Kerr
  • Date: 2014-03-14 17:37:00 UTC
  • mfrom: (312.5.9 upcoming-calendar-events)
  • Revision ID: ps-jenkins@lists.canonical.com-20140314173700-4bicnok0bp2efaa0
When the user clicks on a date in the calendar, update the "Upcoming Events" section to show events starting at that date. Fixes: 1290169, 1290171, 1291468

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
{
37
37
public:
38
38
    static DateTime NowLocal();
 
39
    static DateTime Local(int years, int months, int days, int hours, int minutes, int seconds);
 
40
 
39
41
    explicit DateTime(time_t t);
40
42
    explicit DateTime(GDateTime* in=nullptr);
41
43
    DateTime& operator=(GDateTime* in);
48
50
    GDateTime* operator()() const {return get();}
49
51
 
50
52
    std::string format(const std::string& fmt) const;
 
53
    void ymd(int& year, int& month, int& day) const;
51
54
    int day_of_month() const;
 
55
    int hour() const;
 
56
    int minute() const;
52
57
    double seconds() const;
53
58
    int64_t to_unix() const;
54
59