Lines Matching refs:lt

162 	struct tm	*lt;  in stime_arg1()  local
168 if ((lt = localtime(&tmptime)) == NULL) in stime_arg1()
178 lt->tm_sec = 0; /* Seconds defaults to 0. */ in stime_arg1()
183 lt->tm_sec = ATOI2(dot); in stime_arg1()
184 if (lt->tm_sec > 61) /* Could be leap second. */ in stime_arg1()
191 lt->tm_year = (ATOI2(arg) * 100) - 1900; in stime_arg1()
197 lt->tm_year += yearset; in stime_arg1()
201 lt->tm_year = yearset; in stime_arg1()
203 lt->tm_year += 100; in stime_arg1()
207 lt->tm_mon = ATOI2(arg); in stime_arg1()
208 if (lt->tm_mon > 12 || lt->tm_mon == 0) in stime_arg1()
210 --lt->tm_mon; /* Convert from 01-12 to 00-11 */ in stime_arg1()
211 lt->tm_mday = ATOI2(arg); in stime_arg1()
212 if (lt->tm_mday > 31 || lt->tm_mday == 0) in stime_arg1()
214 lt->tm_hour = ATOI2(arg); in stime_arg1()
215 if (lt->tm_hour > 23) in stime_arg1()
217 lt->tm_min = ATOI2(arg); in stime_arg1()
218 if (lt->tm_min > 59) in stime_arg1()
225 lt->tm_isdst = -1; /* Figure out DST. */ in stime_arg1()
226 tsp[0].tv_sec = tsp[1].tv_sec = mktime(lt); in stime_arg1()
237 struct tm *lt; in stime_arg2() local
241 if ((lt = localtime(&tmptime)) == NULL) in stime_arg2()
244 lt->tm_mon = ATOI2(arg); /* MMDDhhmm[YY] */ in stime_arg2()
245 if (lt->tm_mon > 12 || lt->tm_mon == 0) in stime_arg2()
247 --lt->tm_mon; /* Convert from 01-12 to 00-11 */ in stime_arg2()
248 lt->tm_mday = ATOI2(arg); in stime_arg2()
249 if (lt->tm_mday > 31 || lt->tm_mday == 0) in stime_arg2()
251 lt->tm_hour = ATOI2(arg); in stime_arg2()
252 if (lt->tm_hour > 23) in stime_arg2()
254 lt->tm_min = ATOI2(arg); in stime_arg2()
255 if (lt->tm_min > 59) in stime_arg2()
260 lt->tm_year = year; in stime_arg2()
262 lt->tm_year += 100; in stime_arg2()
264 lt->tm_sec = 0; in stime_arg2()
266 lt->tm_isdst = -1; /* Figure out DST. */ in stime_arg2()
267 tsp[0].tv_sec = tsp[1].tv_sec = mktime(lt); in stime_arg2()