User:Syranzi/Documentation/How Tos/Calc: ISLEAPYEAR function

From Apache OpenOffice Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

ISLEAPYEAR

ISLEAPYEAR

Tests if a date is in a leap year.

指定日がうるう年かどうか調べます。

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

この機能は、Analysis AddIn (分析アドイン) がインストールされている場合のみ使用可能です。

Syntax:

構文:

ISLEAPYEAR(date) ISLEAPYEAR(date)

Returns 1 if date lies in a leap year, and 0 otherwise.
「日付」がうるう年に属すれば「1」、そうでなければ「0」を返します。

Example:

例:

ISLEAPYEAR("2012-05-24")

returns 1; 2012 is a leap year.

ISLEAPYEAR("2012-05-24")

「1」を返します。2012 年は、うるう年です。

Issues:

課題:

  • This function is not available in Excel. Try =MONTH(DATE(YEAR(date);2;29))=2 if you need compatibility with Excel.
  • Excel では使われていない関数です。Excel での互換性が必要な場合、計算式「=MONTH(DATE(YEAR(日付);2;29))=2」を使ってください。



See Also

関連項目

Personal tools