Lines Matching defs:t1
300 * tmsecs returns number of seconds from t1 to t2,
302 * assumed that t1 <= t2, and are in same day.
306 tmsecs(t1, t2)
307 register struct tm *t1, *t2;
309 return((t2->tm_sec - t1->tm_sec) +
310 60*(t2->tm_min - t1->tm_min) +
311 3600L*(t2->tm_hour - t1->tm_hour));
315 * return 1 if t1 earlier than t2 (times in localtime format)
316 * assumed that t1 and t2 are in same day
320 tmless(t1, t2)
321 register struct tm *t1, *t2;
323 if (t1->tm_hour != t2->tm_hour)
324 return(t1->tm_hour < t2->tm_hour);
325 if (t1->tm_min != t2->tm_min)
326 return(t1->tm_min < t2->tm_min);
327 return(t1->tm_sec < t2->tm_sec);