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

Update length of month and year #157

Closed

Conversation

IDisposable
Copy link

@IDisposable IDisposable commented Jul 12, 2019

Since leap years are actually every four years EXCEPT every hundred years but INCLUDING every four-hundred years, the average number of days in a year is 365.2425 not 365.25. This means that the number of days in a month is (on average) 30.436875 days.

This means we have to update all the test data to conform to the correct calculations.

Fixes #156

Since leap years are actually every four years EXCEPT every 100 years but INCLUDING every four-hundred years, the actual number of days in a year is 365.2425 not 365.25. This means that the number of days in a month is (on average) 30.436875 days.
This means we have to update all the test data to conform to the correct calculations.
@EvanHahn
Copy link
Owner

Mentioned some concerns in #156—let's discuss there unless it's about this fix specifically.

@motchju
Copy link

motchju commented Mar 30, 2020

Would be nice to merge it, thanks @IDisposable for the work and @EvanHahn for the repo

@EvanHahn
Copy link
Owner

EvanHahn commented Jun 7, 2020

For anyone following along here but not in the original issue, I added a comment explaining my plans here.

@EvanHahn EvanHahn mentioned this pull request Jun 11, 2020
12 tasks
@EvanHahn EvanHahn closed this Oct 17, 2020
@EvanHahn EvanHahn deleted the branch EvanHahn:master October 17, 2020 18:23
@EvanHahn
Copy link
Owner

I just renamed master to main which caused this PR to be automatically closed. I didn't realize this would happen. Apologies!

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.

Calculations of years and months wrong due to leap years
3 participants