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

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

Jump to: navigation, search

DATE

DATE

returns the date, given the year, month and day of the month.

年、月、日が指定されると、あてはまる日付を返します。

Syntax:

構文:

DATE(year; month; day)

returns the date, expressed as a date-time serial number.
year is an integer between 1583 and 9956 or between 0 and 99; month and day are integers.


If month and day are not within range for a valid date, the date will 'roll over', as shown below.

DATE(年; 月; 日)

日付を日付・時刻の連番として返します。
「年」は 1583 から 9956、または 0 から 99の間の整数とします。「月」「日」は整数です。


「月」「日」が有効な日付の範囲にない場合、日付は繰り延べるか、さかのぼることになります。以下の例のとおりです。

Example:

例:

DATE(2007; 11; 9)

returns the date 9th November 2007 (as a date-time serial number).

DATE(2007; 11; 9)

「2007 年 11 月 9 日」という日付を (日付・時刻のシリアル値として) 返します。

DATE(2007; 12; 32)

returns 1st January 2008 - the date rolls over, as 32nd December 2007 is not valid.

DATE(2007; 12; 32)

「2008 年 1 月 1 日」と返します。「2007 年 12 月 32 日」が有効でないため、日付を繰り延べています。

DATE(2004; 3; 0)

returns 29th February 2004 - the date rolls over backwards, as 0th March 2004 is not valid. 2004 was a leap year.

DATE(2004; 3; 0)

「2004 年 2 月 29 日」と返します。「2004 年 3 月 0 日」が有効でないため、日付をさかのぼっています。2004 年は、うるう年でした。

DATE(2006; 15; 8)

returns 8th March 2007 - the date rolls over, as there are only 12 months in a year

DATE(2006; 15; 8)

「2007 年 3 月 8 日」と返します。1 年には 12 カ月しかないため、日付を繰り延べています。

Template:Documentation/SeeAlso

Personal tools