Lines Matching refs:tm
86 static char *str2tmx __P((char *, struct tm *));
97 struct tm *tm; local
107 tm = localtime(&t);
108 l = strftime(p, len, format, tm);
201 struct tm tm; in backupsa_from_file() local
228 memset(&tm, 0, sizeof(tm)); in backupsa_from_file()
229 p = str2tmx(buf, &tm); in backupsa_from_file()
238 created = mktime(&tm); in backupsa_from_file()
364 str2tmx(char *p, struct tm *tm) in str2tmx() argument
371 tm->tm_mon = i; in str2tmx()
383 tm->tm_mday = str2num(p, len); in str2tmx()
384 if (tm->tm_mday == -1 || tm->tm_mday > 31) in str2tmx()
392 tm->tm_hour = str2num(p, len); in str2tmx()
393 if (tm->tm_hour == -1 || tm->tm_hour > 24) in str2tmx()
401 tm->tm_min = str2num(p, len); in str2tmx()
402 if (tm->tm_min == -1 || tm->tm_min > 60) in str2tmx()
410 tm->tm_sec = str2num(p, len); in str2tmx()
411 if (tm->tm_sec == -1 || tm->tm_sec > 60) in str2tmx()
419 tm->tm_year = str2num(p, len); in str2tmx()
420 if (tm->tm_year == -1 || tm->tm_year < 1900) in str2tmx()
422 tm->tm_year -= 1900; in str2tmx()
452 struct tm tm; in main() local
457 memset(&tm, 0, sizeof(tm)); in main()
458 p = str2tmx(buf, &tm); in main()
460 t = mktime(&tm); in main()