User:Syranzi/Documentation/How Tos/Calc: WEEKNUM 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
WEEKNUM
Returns the ISO week number of a given date.
指定された日の ISO 週番号を返します。
Syntax:
構文:
WEEKNUM(date; mode)
- returns the international standard ISO8601 week number, where week 1 is the week that contains January 4th.
WEEKNUM(日付; 計算方式)
- 国際標準 ISO8601 による週番号を返します。第 1 週は、1 月 4 日を含む週です。
- 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 は月曜日です。
- To mimic the non-ISO behaviour of the Excel WEEKNUM function, use WEEKNUM_ADD.
- ISO 週番号を用いない Excel 関数 WEEKNUM の機能を再現するには、WEEKNUM_ADD を利用してください。
Example:
例:
WEEKNUM("2010-01-07"; 2)
- returns 1. 7Jan10 is a Thursday, and 4Jan10 the Monday of that week.
WEEKNUM("2010-01-07"; 2)
- 「1」を返します。10 年 1 月 7 日は木曜日、10 年 1 月 4 日は同じ週の月曜日です。
Issues:
課題:
- WEEKNUM is called ISOWEEKNUM in the forthcoming ODFF standard.
- WEEKNUM は将来的な ODFF 標準では ISOWEEKNUM と称されます。
See Also
関連項目