Lines Matching defs:hours
56 int hours, minutes;
88 for (hours = 0; (c = *cp) && c != '\n'; ++cp) {
91 hours = hours * 10 + (c - '0');
93 minutes = hours % 100;
94 hours /= 100;
99 secs = hours * 60 * 60 + minutes * 60;
104 if (hours > 23)
108 if (hours > 11)
109 hours -= 12;
117 if (hours < t_12_hour ||
118 (hours == t_12_hour && minutes <= t->tm_min))
120 hours += 12;
122 secs = (hours - t_12_hour) * 60 * 60;