Lines Matching refs:tm
6 static int tm_cmp(const struct tm *tm1, const struct tm *tm2)
23 static inline void adjust_leap_second(struct tm *tm)
25 if (tm->tm_sec == 60)
26 tm->tm_sec = 59;
33 time_t utc_mktime(const struct tm *tm)
35 struct tm leap_adj_tm = *tm;
37 struct tm tmp = leap_adj_tm;
46 time_t utc_mktime(const struct tm *tm)
48 struct tm leap_adj_tm = *tm;
50 const struct tm *try_tm;
55 when gmtime()'s output matches the tm parameter, we've found the
56 correct time_t value. this also means that if tm contains invalid