Lines Matching defs:hour
147 /* hour is the most tricky one */
150 /* 24 hour format */
154 /* 12 hour format, with 0x2 for pm */
173 unsigned int year, mon, day, hour, min, sec, y2k;
179 hour = xicor_read(X1241REG_HR);
181 if (hour & X1241REG_HR_MIL) {
182 hour &= 0x3f;
184 if (hour & 0x20)
185 hour = (hour & 0xf) + 0x12;
196 hour = bcd2bin(hour);
204 return mktime(year, mon, day, hour, min, sec);