Add DAYSPERNYEAR, SECSPERDAY. Add casts to time_t on constants in DAYSPERNYEAR, SECSPERDAY for 16bit-int targets.