Lines Matching refs:tm
282 struct tm tm;
326 (void) memset(&tm, 0, sizeof (struct tm));
328 tm.tm_year = atoi(year) - 1900;
329 tm.tm_mon = atoi(month) - 1;
330 tm.tm_mday = atoi(day);
331 tm.tm_hour = atoi(hour);
332 tm.tm_min = atoi(minute);
333 tm.tm_sec = atoi(second);
340 if ((when = mktime(&tm)) == -1 && errno != 0)
342 if (tm.tm_isdst)
394 struct tm tm;
407 (void) memset(&tm, 0, sizeof (struct tm));
409 tm.tm_year = localtime(&when)->tm_year;
417 tm.tm_year = atoi_for2(t);
420 if (tm.tm_year < 69)
421 tm.tm_year += 100;
423 tm.tm_year += (century - 19) * 100;
426 tm.tm_mon = atoi_for2(t) - 1;
428 tm.tm_mday = atoi_for2(t);
430 tm.tm_hour = atoi_for2(t);
432 tm.tm_min = atoi_for2(t);
433 tm.tm_sec = seconds;
439 if ((when = mktime(&tm)) == -1)
441 if (tm.tm_isdst)
452 struct tm tm;
459 (void) memset(&tm, 0, sizeof (struct tm));
461 tm.tm_year = localtime(&when)->tm_year;
465 tm.tm_year = atoi_for2(t+8);
466 if (tm.tm_year < 69)
467 tm.tm_year += 100;
470 tm.tm_mon = atoi_for2(t) - 1;
472 tm.tm_mday = atoi_for2(t);
474 tm.tm_hour = atoi_for2(t);
476 tm.tm_min = atoi_for2(t);
482 if ((when = mktime(&tm)) == -1)
484 if (tm.tm_isdst)