Lines Matching defs:t2
412 /* Compare dates and return if t1 is equal, greater or lesser than t2 */
414 compare_date(net_time_t *t1, net_time_t *t2)
416 if (t1->net_time_yr == t2->net_time_yr &&
417 t1->net_time_mon == t2->net_time_mon &&
418 t1->net_time_day == t2->net_time_day) {
421 if (t1->net_time_yr > t2->net_time_yr ||
422 (t1->net_time_yr == t2->net_time_yr &&
423 t1->net_time_mon > t2->net_time_mon) ||
424 (t1->net_time_yr == t2->net_time_yr &&
425 t1->net_time_mon == t2->net_time_mon &&
426 t1->net_time_day > t2->net_time_day)) {
432 /* Compare times and return if t1 is equal, greater or lesser than t2 */
434 compare_time(net_time_t *t1, net_time_t *t2)
438 cd = compare_date(t1, t2);
445 if (t1->net_time_hr == t2->net_time_hr &&
446 t1->net_time_min == t2->net_time_min &&
447 t1->net_time_sec == t2->net_time_sec) {
450 if (t1->net_time_hr > t2->net_time_hr ||
451 (t1->net_time_hr == t2->net_time_hr &&
452 t1->net_time_min > t2->net_time_min) ||
453 (t1->net_time_hr == t2->net_time_hr &&
454 t1->net_time_min == t2->net_time_min &&
455 t1->net_time_sec > t2->net_time_sec)) {