User:Syranzi/Documentation/How Tos/Calc: WEEKSNUM ADD function
From Apache OpenOffice Wiki
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.
WEEKNUM_ADD
WEEKNUM_ADD
Returns the non-ISO week number of a given date.
指定された日の、ISO に準拠しない週番号を返します。
This function is only available if the Analysis AddIn is installed.
この機能は、Analysis AddIn (分析アドイン) がインストールされている場合のみ使用可能です。
Syntax:
構文:
WEEKNUM_ADD(date; mode)
- returns the 'conventional' non-ISO week number, where week 1 is the week that contains January 1st.
WEEKNUM_ADD(日付; 計算方式)
- ISO に準拠しない、「従来の」週番号を返します。第 1 週は、1 月 1 日を含む週です。
- date is the date as a date-time serial number or as text.
- 「日付」は、日付・時刻のシリアル値または文字で表される日です。
- mode specifies which day is considered the first day of the week: 1 for Sunday, 2 for Monday.
- 「計算方式」は、何曜日を週の始まりとするか指定します。例えば、1 は日曜日、2 は月曜日です。
- WEEKNUM_ADD mimics the behaviour of the WEEKNUM function in Excel. Calc's WEEKNUM function returns the international standard ISO8601 week number.
- WEEKNUM_ADD は Excel 関数 WEEKNUM の機能を再現します。Calc 関数 WEEKNUM は、国際標準 ISO8601 週番号を返します。
Example:
例:
WEEKNUM_ADD("2010-01-07"; 2)
- returns 2. 7Jan10 is a Thursday, and 1Jan10 is the Friday of the preceding week.
WEEKNUM_ADD("2010-01-07"; 2)
- 「2」を返します。10 年 1 月 7 日は木曜日、10 年 1 月 1 日は前の週の金曜日です。
Issues:
課題:
- WEEKNUM_ADD is called WEEKNUM in the forthcoming ODFF standard.
- WEEKNUM_ADD は将来的な ODFF 標準では WEEKNUM と称されます。
See Also
関連項目