640
640
LOG_TIMER("Test clock time: current time is %02d:%02d:%02d timer setting is %02.0f:%02.0f:%02.0f (day_of_year:%d/%d) diff in seconds:%d\n",
641
641
tmp->tm_hour, tmp->tm_min, tmp->tm_sec, tr->val[0], tr->val[1], tr->val[2], tmp->tm_yday, tr->day_of_year, (timer_secs - clock_secs));
645
// Eg. Do not fire if clock time is 14:00:00, and timer setting is:12:10:00 pm. We will assume here that user means 12:10pm tomorrow, not to day.
647
655
// Save day_of_year so we know when the clock turns around (to the next day).
649
657
tr->day_of_year = tmp->tm_yday;