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

From Apache OpenOffice Wiki
Revision as of 04:05, 29 January 2011 by Syranzi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DAYSINYEAR

DAYSINYEAR

Returns the number of days in a year.

1 つの年の総日数を返します。

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

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

Syntax:

構文:

DAYSINYEAR(date)

returns the number of days in the year in which date lies.

DAYSINYEAR(日付)

「日付」が属する年の総日数を返します。

Example:

例:

DAYSINYEAR("2012-02-14")

returns 366, the number of days in 2012 (2012 is a leap year).

DAYSINYEAR("2012-02-14")

2012 年の日数「366」を返します (2012 年は、うるう年)。

Issues:

課題:

DAYSINYEAR is not part of the forthcoming ODFF international standard, and is not portable. Try 365+(MONTH(DATE(YEAR(date);2;29))=2) if you wish a portable result.

DAYSINYEAR は、将来的に ODFF 国際標準の範疇に入らず、移植できません。計算結果を移植するには、365+(MONTH(DATE(YEAR(日付);2;29))=2) を使ってください。

Template:Documentation/SeeAlso

Personal tools