Beispiel #1
0
void
weather_and_time(int mode)
{
  another_hour(mode);
  if (mode)
    weather_change();
}
Beispiel #2
0
void another_minute(void)
{
    time_info.minute++;

    if (time_info.minute >= 60) {
        time_info.minute = 0;
        another_hour();
    }
}
Beispiel #3
0
void weather_and_time(int mode)
{
    if (DEBUG > 3)
	log_info("called %s with %d", __PRETTY_FUNCTION__, mode);

    another_hour(mode);
    if (mode)
	weather_change();
    if (time_info.hours == TIME_NOON || time_info.hours == TIME_MIDNIGHT)
	update_time_and_weather();
}
Beispiel #4
0
void
weather_and_time(void)
{
    time_t now = time(NULL);

    // Advance last sunday time
    if (now - last_sunday_time > (7 * 24 * 60 * 60)) {
        last_sunday_time += 7 * 24 * 60 * 60;
        qp_reload(0);
    }

    another_hour();
    weather_change();
}