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 year length to the actual Gregorian length #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danhunsaker
Copy link

The Gregorian Calendar, the one we generally use for day to day, has an average year length of 365.2425 days. This is because the three rules for counting leap years are:

  • year % 4 == 0: leap
  • year % 100 == 0: normal
  • year % 400 == 0: leap

Which is why 2000, for example, was a leap year. So it would be a good idea to update this number to be more accurate.

On a side note, the value before this commit, 365.24, is accurate for the Julian Calendar, on which the Gregorian is based. It just started getting out of sync with the seasons (Easter was creeping closer to June), so a revision was commissioned, and now here we are!

The Gregorian Calendar, the one we generally use for day to day, has an average year length of 365.2425 days. This is because the three rules for counting leap years are:

- year % 4 == 0: leap
- year % 100 == 0: normal
- year % 400 == 0: leap

Which is why 2000, for example, was a leap year. So it would be a good idea to update this number to be more accurate.

On a side note, the value before this commit, 365.24, _is_ accurate for the Julian Calendar, on which the Gregorian is based. It just started getting out of sync with the seasons (Easter was creeping closer to June), so a revision was commissioned, and now here we are!
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