Home | History | Annotate | Download | only in date

Lines Matching defs:tm

98 	struct tm *tm;
208 if ((tm = localtime(&tval)) == NULL)
211 while (strftime(buf, bufsiz, format, tm) == 0)
249 struct tm tm;
252 memset(&tm, 0, sizeof tm);
256 tm.tm_year = ATOI2(string) * 100;
257 tm.tm_year += ATOI2(string);
258 tm.tm_year -= 1900;
266 tm.tm_mon = ATOI2(string);
267 if (tm.tm_mon < 1 || tm.tm_mon > 12)
269 tm.tm_mon--;
277 tm.tm_mday = ATOI2(string);
278 if (tm.tm_mday < 1)
280 switch (tm.tm_mon) {
282 if (tm.tm_mday > 31)
286 if (tm.tm_mday > 30)
290 if (tm.tm_mday > 28 + isleap(tm.tm_year + 1900))
306 tm.tm_hour = ATOI2(string);
307 if (tm.tm_hour > 23)
317 tm.tm_min = ATOI2(string);
318 if (tm.tm_min >= 60)
328 tm.tm_sec = ATOI2(string);
329 if (tm.tm_sec >= 60)
336 tm.tm_isdst = -1;
337 tm.tm_wday = -1;
339 t = mktime(&tm);
340 if (tm.tm_wday == -1)
354 struct tm *lt;