Skip to content

Conversation

@jamesmyatt
Copy link

@jamesmyatt jamesmyatt commented Feb 28, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant