Lines Matching defs:lt
439 struct tm *lt;
492 lt = localtime(&now); /* current time val */
497 this_year = lt->tm_year;
498 lt->tm_year = ATOI2(timearg);
504 if (lt->tm_year < (this_year % 100) - 1)
505 lt->tm_year += 100;
507 lt->tm_year += (this_year - (this_year % 100));
510 lt->tm_mon = ATOI2(timearg);
511 if (--lt->tm_mon < 0 || lt->tm_mon > 11)
516 lt->tm_mday = ATOI2(timearg);
517 if (lt->tm_mday < 1 || lt->tm_mday > 31)
521 lt->tm_hour = ATOI2(timearg);
522 if (lt->tm_hour < 0 || lt->tm_hour > 23)
524 lt->tm_min = ATOI2(timearg);
525 if (lt->tm_min < 0 || lt->tm_min > 59)
527 lt->tm_sec = 0;
528 if ((shuttime = mktime(lt)) == -1)
540 lt->tm_mday++;
541 if ((shuttime = mktime(lt)) == -1)