if (imminentperiod == 0)
return dateAfterToday;
ISO8601d imminentDay = today + imminentperiod * 86400;
ISO8601d imminentDay = today + imminentperiod * (time_t) 86400;
if (reference < imminentDay)
}