Skip to content

Shortcut in breakTime when referring to same day#94

Open
jamesmyatt wants to merge 5 commits intoPaulStoffregen:masterfrom
jamesmyatt:feature/cache
Open

Shortcut in breakTime when referring to same day#94
jamesmyatt wants to merge 5 commits intoPaulStoffregen:masterfrom
jamesmyatt:feature/cache

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