Lines Matching refs:lt
451 struct tm *lt; in getoffset() local
504 lt = localtime(&now); /* current time val */ in getoffset()
509 this_year = lt->tm_year; in getoffset()
510 lt->tm_year = ATOI2(timearg); in getoffset()
516 if (lt->tm_year < (this_year % 100) - 1) in getoffset()
517 lt->tm_year += 100; in getoffset()
519 lt->tm_year += (this_year - (this_year % 100)); in getoffset()
522 lt->tm_mon = ATOI2(timearg); in getoffset()
523 if (--lt->tm_mon < 0 || lt->tm_mon > 11) in getoffset()
528 lt->tm_mday = ATOI2(timearg); in getoffset()
529 if (lt->tm_mday < 1 || lt->tm_mday > 31) in getoffset()
533 lt->tm_hour = ATOI2(timearg); in getoffset()
534 if (lt->tm_hour < 0 || lt->tm_hour > 23) in getoffset()
536 lt->tm_min = ATOI2(timearg); in getoffset()
537 if (lt->tm_min < 0 || lt->tm_min > 59) in getoffset()
539 lt->tm_sec = 0; in getoffset()
540 if ((shuttime = mktime(lt)) == -1) in getoffset()
552 lt->tm_mday++; in getoffset()
553 if ((shuttime = mktime(lt)) == -1) in getoffset()