Lines Matching refs:tl
558 check_result (time_t tk, struct tm tmk, time_t tl, const struct tm *lt)
560 if (tk != tl || !lt || not_equal_tm (&tmk, lt))
566 printf (") == %ld, should be %ld\n", (long int) tk, (long int) tl);
579 time_t tk, tl, tl1;
594 tl = mktime (&tmk);
595 lt = localtime (&tl);
601 printf ("mktime returns %ld == ", (long int) tl);
604 status = check_result (tl, tmk, tl, lt);
613 for (tl = from; by < 0 ? to <= tl : tl <= to; tl = tl1)
615 lt = localtime (&tl);
620 status |= check_result (tk, tmk, tl, &tml);
624 printf ("localtime (%ld) yields 0\n", (long int) tl);
627 tl1 = tl + by;
628 if ((tl1 < tl) != (by < 0))
632 for (tl = from; by < 0 ? to <= tl : tl <= to; tl = tl1)
635 lt = localtime (&tl);
639 tk = tl;
640 status |= check_result (tk, tmk, tl, &tml);
644 printf ("localtime (%ld) yields 0\n", (long int) tl);
647 tl1 = tl + by;
648 if ((tl1 < tl) != (by < 0))