Lines Matching full:lt

90 	struct tm *lt;  in main()  local
193 lt = localtime(&ts.tv_sec); in main()
194 if (lt == NULL) in main()
196 badv = vary_apply(v, lt); in main()
206 printisodate(lt, ts.tv_nsec, tres.tv_nsec); in main()
216 (void)strftime_ns(buf, sizeof(buf), format, lt, in main()
231 printisodate(struct tm *lt, long nsec, long res) in printisodate() argument
240 (void)strftime_ns(buf, sizeof(buf), fmtbuf, lt, nsec, res); in printisodate()
243 (void)strftime_ns(tzbuf, sizeof(tzbuf), "%z", lt, nsec, res); in printisodate()
258 struct tm *lt; in setthetime() local
262 lt = localtime(&ts->tv_sec); in setthetime()
263 if (lt == NULL) in setthetime()
265 lt->tm_isdst = -1; /* divine correct DST */ in setthetime()
268 t = strptime(p, fmt, lt); in setthetime()
292 lt->tm_sec = ATOI2(dot); in setthetime()
293 if (lt->tm_sec > 61) in setthetime()
296 lt->tm_sec = 0; in setthetime()
302 lt->tm_year = ATOI2(p) * 100 - TM_YEAR_BASE; in setthetime()
307 lt->tm_year += ATOI2(p); in setthetime()
309 lt->tm_year = ATOI2(p); in setthetime()
310 if (lt->tm_year < 69) /* hack for 2000 ;-} */ in setthetime()
311 lt->tm_year += 2000 - TM_YEAR_BASE; in setthetime()
313 lt->tm_year += 1900 - TM_YEAR_BASE; in setthetime()
317 lt->tm_mon = ATOI2(p); in setthetime()
318 if (lt->tm_mon > 12) in setthetime()
320 --lt->tm_mon; /* time struct is 0 - 11 */ in setthetime()
323 lt->tm_mday = ATOI2(p); in setthetime()
324 if (lt->tm_mday > 31) in setthetime()
328 lt->tm_hour = ATOI2(p); in setthetime()
329 if (lt->tm_hour > 23) in setthetime()
333 lt->tm_min = ATOI2(p); in setthetime()
334 if (lt->tm_min > 59) in setthetime()
343 lt->tm_yday = -1; in setthetime()
344 ts->tv_sec = mktime(lt); in setthetime()
345 if (lt->tm_yday == -1) in setthetime()