Difference between revisions of "Documentation/How Tos/Calc: ISLEAPYEAR function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 15: | Line 15: | ||
: returns <tt>'''1'''</tt>; 2012 is a leap year. | : returns <tt>'''1'''</tt>; 2012 is a leap year. | ||
− | + | {{Documentation/SeeAlso| | |
− | + | * [[Documentation/How_Tos/Calc: DAYSINMONTH function|DAYSINMONTH]] | |
− | + | * [[Documentation/How_Tos/Calc: DAYSINYEAR function|DAYSINYEAR]]''' | |
− | + | * [[Documentation/How_Tos/Calc: Information functions|Information functions]]''' | |
− | + | * [[Documentation/How_Tos/Calc: Date & Time functions#Date and Time overview|Date & Time overview]]''' | |
− | + | * [[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]''' | |
− | [[Documentation/How_Tos/Calc: Functions listed alphabetically| | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] |
− | [[Documentation/How_Tos/Calc: Functions listed by category| | + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
=== Issues: === | === Issues: === | ||
* 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. |
Revision as of 13:59, 25 February 2009
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.
Template:Documentation/SeeAlso
Issues:
- This function is not available in Excel. Try =MONTH(DATE(YEAR(date);2;29))=2 if you need compatibility with Excel.