Lines Matching defs:hour
83 // the 24 hour time encoding. In that case, it is set for PM and unset
93 uint8_t hour = reg_is_binary ? data : from_bcd(data);
96 return hour;
100 hour += 12;
104 switch (hour) {
110 return hour;
114 static void write_reg_hour(uint8_t hour, bool reg_is_binary, bool reg_is_24_hour) {
115 bool pm = hour > 11;
119 hour -= 12;
121 if (hour == 0) {
122 hour = 12;
126 uint8_t data = reg_is_binary ? hour : to_bcd(hour);
141 // Retrieve the hour format and data mode bits. Note that on some