Lines Matching refs:lt
415 struct tm *lt;
450 lt = localtime(&now); /* current time val */
454 this_year = lt->tm_year;
455 lt->tm_year = ATOI2(timearg);
461 if (lt->tm_year < (this_year % 100) - 1)
462 lt->tm_year += 100;
464 lt->tm_year += (this_year - (this_year % 100));
467 lt->tm_mon = ATOI2(timearg);
468 if (--lt->tm_mon < 0 || lt->tm_mon > 11)
472 lt->tm_mday = ATOI2(timearg);
473 if (lt->tm_mday < 1 || lt->tm_mday > 31)
477 lt->tm_hour = ATOI2(timearg);
478 if (lt->tm_hour < 0 || lt->tm_hour > 23)
480 lt->tm_min = ATOI2(timearg);
481 if (lt->tm_min < 0 || lt->tm_min > 59)
483 lt->tm_sec = 0;
484 if ((shuttime = mktime(lt)) == -1)