Lines Matching full:tm
50 time_t timegm(struct tm *tm) in timegm() argument
58 if (tm->tm_mon > 12 || in timegm()
59 tm->tm_mon < 0 || in timegm()
60 tm->tm_mday > 31 || in timegm()
61 tm->tm_min > 60 || in timegm()
62 tm->tm_sec > 60 || in timegm()
63 tm->tm_hour > 24) { in timegm()
64 /* invalid tm structure */ in timegm()
68 for (i = 70; i < tm->tm_year; ++i) in timegm()
71 for (i = 0; i < tm->tm_mon; ++i) in timegm()
72 res += ndays[is_leap(tm->tm_year)][i]; in timegm()
73 res += tm->tm_mday - 1; in timegm()
75 res += tm->tm_hour; in timegm()
77 res += tm->tm_min; in timegm()
79 res += tm->tm_sec; in timegm()