Lines Matching refs:lt
527 struct tm *lt; in str_sec() local
546 lt = localtime(tval); in str_sec()
551 lt->tm_sec = ATOI2(dot); in str_sec()
552 if (lt->tm_sec > 61) in str_sec()
556 lt->tm_sec = 0; in str_sec()
561 lt->tm_year = (bigyear * 100) - 1900; in str_sec()
566 lt->tm_year += ATOI2(p); in str_sec()
568 lt->tm_year = ATOI2(p); in str_sec()
569 if (lt->tm_year < 69) /* hack for 2000 ;-} */ in str_sec()
570 lt->tm_year += (2000 - 1900); in str_sec()
574 lt->tm_mon = ATOI2(p); in str_sec()
575 if ((lt->tm_mon > 12) || !lt->tm_mon) in str_sec()
577 --lt->tm_mon; /* time struct is 0 - 11 */ in str_sec()
580 lt->tm_mday = ATOI2(p); in str_sec()
581 if ((lt->tm_mday > 31) || !lt->tm_mday) in str_sec()
585 lt->tm_hour = ATOI2(p); in str_sec()
586 if (lt->tm_hour > 23) in str_sec()
590 lt->tm_min = ATOI2(p); in str_sec()
591 if (lt->tm_min > 59) in str_sec()
599 if ((*tval = mktime(lt)) == -1) in str_sec()