Lines Matching refs:tm
174 struct tm tm;
177 tm = *localtime(&time_value);
178 str = asctime(&tm);
284 erase_hands (w, (struct tm *) 0);
298 struct tm tm;
310 tm = *localtime(&time_value);
315 if (w->clock.beeped && (tm.tm_min != 30) &&
316 (tm.tm_min != 0))
318 if (((tm.tm_min == 30) || (tm.tm_min == 0))
322 if (tm.tm_min == 0)
330 time_ptr = asctime(&tm);
363 if(tm.tm_hour > 12)
364 tm.tm_hour -= 12;
366 erase_hands (w, &tm);
369 tm.tm_min != w->clock.otm.tm_min ||
370 tm.tm_hour != w->clock.otm.tm_hour) {
381 ((double) tm.tm_min)/60.0
396 ((((double)tm.tm_hour) +
397 (((double)tm.tm_min)/60.0)) / 12.0)
420 ((double) tm.tm_sec)/60.0
437 w->clock.otm = tm;
441 static void erase_hands (w, tm)
443 struct tm *tm;
469 if(!tm || tm->tm_min != w->clock.otm.tm_min ||
470 tm->tm_hour != w->clock.otm.tm_hour)