first_day
int fday = first_day (timeptr->tm_year + tm_year_base);
int fday = (first_day (timeptr->tm_year + tm_year_base) + 6) % 7;