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

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

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

DAYS360

DAYS360

Returns the number of days between two dates, using the 360 day year.

1 年を 360 日として、2 つの日付の間にある日数を返します。

Syntax:

構文:

DAYS360(enddate; startdate; method)

startdate and enddate are the starting and ending dates (text or date-time serial numbers). If startdate is earlier than enddate, the result will be negative.

DAYS360(終了日付; 開始日付; 計算方式)

「開始日付」「終了日付」は、指定期間が始まる日と終わる日 (文字または日付・時刻のシリアル値) です。「開始日付」「終了日付」より以前であれば、返される結果は負数になります。
method is an optional parameter; if 0 or omitted, the US National Association of Securities Dealers (NASD) method of calculation is used; if 1 (or <>0) the European method of calcuation is used.
「方法」は任意のパラメーターです。0 か空欄にされると、全米証券業者協会 (NASD) 方式の計算方法が適用されます。1 (または 0 以外) であれば、ヨーロッパ式の計算方法が適用されます。
The calculation assumes that all months have 30 days, so a year (12 months) has 360 days.
この計算では、すべての月は 30 日あると仮定しています。つまり、1 年 (12 ヵ月) は 360 日 になります。
See Financial date systems for more details.
詳細は、Financial date systems (Calc の日付・時刻関数のうち、金融関連の日付システム解説) を参照してください。

Example:

例:

DAYS360("2008-02-29"; "2008-08-31")

returns 180, that is, 6 months of 30 days.

DAYS360("2008-02-29"; "2008-08-31")

「180」を返します。つまり、1 ヵ月 を30 日として 6 ヵ月相当です。

Template:Documentation/SeeAlso

Personal tools