Lines Matching refs:hour
141 int hour, year;
156 hour = t->tm_hour;
158 if (hour > 11)
159 hour += 20 - 12;
160 if (hour == 0 || hour == 20)
161 hour += 12;
163 val.hr_ones = hour % 10;
164 val.hr_tens = hour / 10;
182 hour = val.hr_ones + val.hr_tens * 10;
184 if (hour == 12 || hour == 12 + 20)
185 hour -= 12;
186 if (hour >= 20)
187 hour += 12 - 20;
189 t->tm_hour = hour;
200 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0;
213 hour = t->tm_hour;
220 if (hour > 11) {
222 if (hour != 12)
223 hour -= 12;
225 else if (hour == 0)
226 hour = 12;
232 hour = bin2bcd(hour);
265 hour = RTC_READ( RTC_HOURS );
274 RTC_WRITE( RTC_HOURS, hour + pm);
286 if (hour & 0x80) {
287 hour &= ~0x80;
294 hour = bcd2bin(hour);
302 if (!pm && hour == 12)
303 hour = 0;
304 else if (pm && hour != 12)
305 hour += 12;
310 t->tm_hour = hour;