Lines Matching refs:lt
430 struct tm *lt; in getoffset() local
483 lt = localtime(&now); /* current time val */ in getoffset()
488 this_year = lt->tm_year; in getoffset()
489 lt->tm_year = ATOI2(timearg); in getoffset()
495 if (lt->tm_year < (this_year % 100) - 1) in getoffset()
496 lt->tm_year += 100; in getoffset()
498 lt->tm_year += (this_year - (this_year % 100)); in getoffset()
501 lt->tm_mon = ATOI2(timearg); in getoffset()
502 if (--lt->tm_mon < 0 || lt->tm_mon > 11) in getoffset()
507 lt->tm_mday = ATOI2(timearg); in getoffset()
508 if (lt->tm_mday < 1 || lt->tm_mday > 31) in getoffset()
512 lt->tm_hour = ATOI2(timearg); in getoffset()
513 if (lt->tm_hour < 0 || lt->tm_hour > 23) in getoffset()
515 lt->tm_min = ATOI2(timearg); in getoffset()
516 if (lt->tm_min < 0 || lt->tm_min > 59) in getoffset()
518 lt->tm_sec = 0; in getoffset()
519 if ((shuttime = mktime(lt)) == -1) in getoffset()
531 lt->tm_mday++; in getoffset()
532 if ((shuttime = mktime(lt)) == -1) in getoffset()