Converting days since 1970 to weekday, day, month, year is expensive, but can use internal cache of time elements to skip this calculation when the day hasn't changed.
This also fixes a bug in void setTime(int hr,int min,int sec,int dy, int mnth, int yr) that the cacheTime and Wday element weren't updated.
Converting days since 1970 to weekday, day, month, year is expensive, but can use internal cache of time elements to skip this calculation when the day hasn't changed.
This also fixes a bug in
void setTime(int hr,int min,int sec,int dy, int mnth, int yr)
that the cacheTime and Wday element weren't updated.