Lines Matching refs:tm
28 struct tm *
34 struct tm *tm;
39 tm = local ? localtime(&curr) : gmtime(&curr);
40 if (!tm) return NULL;
42 curr_year = 1900 + tm->tm_year;
54 tm = local ? localtime(&t) : gmtime(&t);
65 if (1900 + tm->tm_year > curr_year - 68) break;
71 return tm;
80 struct tm *tm;
89 tm = ntp2unix_tm(sec, 1);
90 if (!tm) {
96 (u_long)ts->l_ui, (u_long)ts->l_uf, days[tm->tm_wday],
97 months[tm->tm_mon], tm->tm_mday, 1900 + tm->tm_year,
98 tm->tm_hour,tm->tm_min, tm->tm_sec, msec);
110 struct tm *tm;
119 tm = ntp2unix_tm(sec, 0);
120 if (!tm) {
126 (u_long)ts->l_ui, (u_long)ts->l_uf, days[tm->tm_wday],
127 months[tm->tm_mon], tm->tm_mday, 1900 + tm->tm_year,
128 tm->tm_hour,tm->tm_min, tm->tm_sec, msec);