Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut in breakTime when referring to same day #94

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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