Lines Matching defs:tm
64 struct tm *
70 static struct tm rtm, tmnow;
71 struct tm *tmp, *rtmp = &rtm;
196 struct tm tm;
198 (void) memset(&tm, 0, sizeof (struct tm));
199 tm.tm_year = rtm.tm_year;
200 tm.tm_mon = rtm.tm_mon;
201 tm.tm_mday = 1;
202 (void) mktime(&tm);
204 (rtm.tm_wday - tm.tm_wday + 7) % 7;
260 struct tm tm;
262 (void) memset(&tm, 0, sizeof (struct tm));
263 tm.tm_year = rtm.tm_year;
264 tm.tm_mon = rtm.tm_mon;
265 tm.tm_mday = 1;
266 (void) mktime(&tm);
267 rtm.tm_mday += (rtm.tm_wday - tm.tm_wday + 7) % 7;