Difference between revisions of "Documentation/How Tos/Calc: ISLEAPYEAR function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
m
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE: ISLEAPYEAR function}}
 +
{{Documentation/CalcFunc DateTimeTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_YEARS_function
 +
|NextPage=Documentation/How_Tos/Calc:_EASTERSUNDAY_function
 +
}}__NOTOC__
  
 
== ISLEAPYEAR  ==
 
== ISLEAPYEAR  ==
Line 18: Line 23:
 
* This function is not available in Excel. Try <tt>'''=MONTH(DATE(YEAR(date);2;29))=2'''</tt> if you need compatibility with Excel.
 
* This function is not available in Excel. Try <tt>'''=MONTH(DATE(YEAR(date);2;29))=2'''</tt> if you need compatibility with Excel.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: DAYSINMONTH function|DAYSINMONTH]]
 
* [[Documentation/How_Tos/Calc: DAYSINMONTH function|DAYSINMONTH]]
 
* [[Documentation/How_Tos/Calc: DAYSINYEAR function|DAYSINYEAR]]
 
* [[Documentation/How_Tos/Calc: DAYSINYEAR function|DAYSINYEAR]]
Line 30: Line 35:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 +
[[Category: Documentation/Reference/Calc/Date and Time functions]]

Latest revision as of 14:08, 30 January 2024



ISLEAPYEAR

Tests if a date is in a leap year.

This function is only available if the Analysis AddIn is installed.

Syntax:

ISLEAPYEAR(date)

Returns 1 if date lies in a leap year, and 0 otherwise.

Example:

ISLEAPYEAR("2012-05-24")

returns 1; 2012 is a leap year.

Issues:

  • This function is not available in Excel. Try =MONTH(DATE(YEAR(date);2;29))=2 if you need compatibility with Excel.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ISLEAPYEAR_function&oldid=259711"
Views
Personal tools
Navigation
Tools