/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/time.h

  • Committer: edam
  • Date: 2012-02-28 16:50:26 UTC
  • Revision ID: edam@waxworlds.org-20120228165026-pwnwo300xx2e2kg6
removed ulibc, fixed button, added text rendering

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        static Time &get_instance();
37
37
 
38
38
        /**
39
 
         * Get year.
40
 
         *
41
 
         * @return year
42
 
         */
43
 
        int get_year();
44
 
 
45
 
        /**
46
 
         * Get month.
47
 
         *
48
 
         * @return month, 1 to 12
49
 
         */
50
 
        int get_month();
51
 
 
52
 
        /**
53
 
         * Get month name.
54
 
         *
55
 
         * @return month name
56
 
         */
57
 
        const char *get_month_name();
58
 
 
59
 
        /**
60
 
         * Get day.
61
 
         *
62
 
         * @return date, 1 to 31
63
 
         */
64
 
        int get_day();
65
 
 
66
 
        /**
67
 
         * Get number suffix.
68
 
         *
69
 
         * @param number
70
 
         * @return suffix
71
 
         */
72
 
        const char *get_day_suffix();
73
 
 
74
 
        /**
75
39
         * Get hours.
76
40
         *
77
41
         * @return hours, 0 to 23
101
65
 
102
66
        Time();
103
67
 
104
 
        /** year */
105
 
        int _year;
106
 
 
107
 
        /** month */
108
 
        int _month;
109
 
 
110
 
        /** day */
111
 
        int _day;
112
 
 
113
68
        /** hours */
114
69
        int _hours;
115
70
 
121
76
 
122
77
private:
123
78
 
124
 
        /** probe the real-time clock device */
125
 
        void probe_rtc();
126
 
 
127
79
        /** milliseconds at last update */
128
80
        unsigned long _last_millis;
129
81