Testing confirms many leap years return 0, "not leap"; some non-leap years return 1, "are leap", some return correct results. Same results in version 22.214.171.124 build ID 1:5.1.4-0ubunto1 and version 126.96.36.199 Build ID: 40m0(Build:2)
Range years tested 0 - 3000.
Please be more specific, which cases give a wrong result and why you think, that the result is wrong.
Created attachment 130310 [details]
Known correct determinations of leap years vs isleapyear() function
Sequence of 3001 years tested in 4 known correct methods of determining leap year are used as arguments to isleapyear() function resulting in many false positives and many missed leap years.
A calc sheet would had been more usefull than a pdf.
We can't see how you are trying to use this function.
ISLEAPYEAR need a true date as argument, see the help for a correct use of the function :
What is needed?
(In reply to Louie from comment #4)
> What is needed?
As said in comment 3, could you please attach a calc sheet ?
Dear Bug Submitter,
This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.
For more information about our NEEDINFO policy please read the
wiki located here:
If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
Thank you for helping us make LibreOffice even better for everyone!
Dear Bug Submitter,
Please read this message in its entirety before proceeding.
Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):
a) Provide details of your system including your operating
system and the latest version of LibreOffice that you have
confirmed the bug to be present
b) Provide easy to reproduce steps – the simpler the better
c) Provide any test case(s) which will help us confirm the problem
d) Provide screenshots of the problem if you think it might help
e) Read all comments and provide any requested information
Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:
a) respond via email
b) update the version field in the bug or any of the other details
on the top section of our bug tracker
This was indeed NOTABUG. As GerardF mentioned in comment 3, ISLEAPYEAR expects a *date* as its argument, while Louie used calculation like '=ISLEAPYEAR(2021)' to learn is 2021 was a leap year. The correct calculation would be e.g. '=ISLEAPYEAR("2021-01-01")'.