DAYS_PER_WEEK
tmp->tm_wday = (int)((EPOCH_WDAY + days) % DAYS_PER_WEEK);
tmp->tm_wday += DAYS_PER_WEEK;