Lines Matching refs:hour
142 int hour, year;
157 hour = t->tm_hour;
159 if (hour > 11)
160 hour += 20 - 12;
161 if (hour == 0 || hour == 20)
162 hour += 12;
164 val.hr_ones = hour % 10;
165 val.hr_tens = hour / 10;
183 hour = val.hr_ones + val.hr_tens * 10;
185 if (hour == 12 || hour == 12 + 20)
186 hour -= 12;
187 if (hour >= 20)
188 hour += 12 - 20;
190 t->tm_hour = hour;
201 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0;
214 hour = t->tm_hour;
221 if (hour > 11) {
223 if (hour != 12)
224 hour -= 12;
226 else if (hour == 0)
227 hour = 12;
233 hour = bin2bcd(hour);
266 hour = RTC_READ( RTC_HOURS );
275 RTC_WRITE( RTC_HOURS, hour + pm);
287 if (hour & 0x80) {
288 hour &= ~0x80;
295 hour = bcd2bin(hour);
303 if (!pm && hour == 12)
304 hour = 0;
305 else if (pm && hour != 12)
306 hour += 12;
311 t->tm_hour = hour;