Lines Matching defs:hour
144 int hour, year;
159 hour = t->tm_hour;
161 if (hour > 11)
162 hour += 20 - 12;
163 if (hour == 0 || hour == 20)
164 hour += 12;
166 val.hr_ones = hour % 10;
167 val.hr_tens = hour / 10;
185 hour = val.hr_ones + val.hr_tens * 10;
187 if (hour == 12 || hour == 12 + 20)
188 hour -= 12;
189 if (hour >= 20)
190 hour += 12 - 20;
192 t->tm_hour = hour;
203 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0;
216 hour = t->tm_hour;
223 if (hour > 11) {
225 if (hour != 12)
226 hour -= 12;
228 else if (hour == 0)
229 hour = 12;
235 hour = bin2bcd(hour);
268 hour = RTC_READ( RTC_HOURS );
277 RTC_WRITE( RTC_HOURS, hour + pm);
289 if (hour & 0x80) {
290 hour &= ~0x80;
297 hour = bcd2bin(hour);
305 if (!pm && hour == 12)
306 hour = 0;
307 else if (pm && hour != 12)
308 hour += 12;
313 t->tm_hour = hour;