Lines Matching refs:lt
106 struct tm *lt;
219 lt = localtime(&tval);
220 if (lt == NULL)
222 badv = vary_apply(v, lt);
232 printisodate(lt);
241 (void)strftime(buf, sizeof(buf), format, lt);
255 printisodate(struct tm *lt)
264 (void)strftime(buf, sizeof(buf), fmtbuf, lt);
267 (void)strftime(tzbuf, sizeof(tzbuf), "%z", lt);
282 struct tm *lt;
287 lt = localtime(&tval);
288 if (lt == NULL)
290 lt->tm_isdst = -1; /* divine correct DST */
293 t = strptime(p, fmt, lt);
317 lt->tm_sec = ATOI2(dot);
318 if (lt->tm_sec > 61)
321 lt->tm_sec = 0;
327 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE;
332 lt->tm_year += ATOI2(p);
334 lt->tm_year = ATOI2(p);
335 if (lt->tm_year < 69) /* hack for 2000 ;-} */
336 lt->tm_year += 2000 - TM_YEAR_BASE;
338 lt->tm_year += 1900 - TM_YEAR_BASE;
342 lt->tm_mon = ATOI2(p);
343 if (lt->tm_mon > 12)
345 --lt->tm_mon; /* time struct is 0 - 11 */
348 lt->tm_mday = ATOI2(p);
349 if (lt->tm_mday > 31)
353 lt->tm_hour = ATOI2(p);
354 if (lt->tm_hour > 23)
358 lt->tm_min = ATOI2(p);
359 if (lt->tm_min > 59)
368 if ((tval = mktime(lt)) == -1)