We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I m not a C guru but it seem that to find a leap year you divide the year by 4. you must also consider dividing by 100 and 400. There is an explanation here: https://learn.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year or here but it mid french mid english https://fr.wikihow.com/calculer-les-ann%C3%A9es-bissextiles regard
The text was updated successfully, but these errors were encountered:
That is correct, the original formula was incomplete, it has now been fixed to read
if (m > 2 && (((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0)))
Sorry, something went wrong.
Added version 1.0.10 and fix for #23
5fe99af
Added correct handling of leap-years, #23
23f3f67
Change implemented in source
Added new version for issue #23 fix
b804fd4
Fixed
SV-Zanshin
No branches or pull requests
Hello,
I m not a C guru but it seem that to find a leap year you divide the year by 4. you must also consider dividing by 100 and 400.
There is an explanation here:
https://learn.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year
or here but it mid french mid english
https://fr.wikihow.com/calculer-les-ann%C3%A9es-bissextiles
regard
The text was updated successfully, but these errors were encountered: