tm_setup
tm_setup(&tmp, tm->tm_year, tm->tm_mon, tm->tm_mday,
tm_setup(&tmp, yr, mon, day, hr, min, -1);