Lines Matching defs:tm
43 time_t mktimegm(struct tm *tm)
47 int y = tm->tm_year + 1900, m = tm->tm_mon + 1, d = tm->tm_mday;
57 t += 3600 * tm->tm_hour + 60 * tm->tm_min + tm->tm_sec;
67 struct tm *brktimegm(time_t secs, struct tm *tm)
74 tm->tm_hour = secs / 3600;
75 tm->tm_min = (secs % 3600) / 60;
76 tm->tm_sec = secs % 60;
90 tm->tm_year = y; /* unlike gmtime_r we store complete year here */
91 tm->tm_mon = m+1; /* unlike gmtime_r tm_mon is from 1 to 12 */
92 tm->tm_mday = days+1;
94 return tm;
125 struct tm *dt)