Difference between revisions of "User:Syranzi/Documentation/How Tos/Calc: WEEKNUM function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_WEEKNUM_function 日本語訳、作業中)
 
(構文:)
Line 19: Line 19:
  
 
: To mimic the non-ISO behaviour of the Excel <tt>'''WEEKNUM'''</tt> function, use <tt>[[Documentation/How_Tos/Calc: WEEKNUM_ADD function|WEEKNUM_ADD]]</tt>.
 
: To mimic the non-ISO behaviour of the Excel <tt>'''WEEKNUM'''</tt> function, use <tt>[[Documentation/How_Tos/Calc: WEEKNUM_ADD function|WEEKNUM_ADD]]</tt>.
: ISO 週番号を用いない Excel 関数 <tt>'''WEEKNUM'''</tt> の計算結果を再現するには、<tt>[[Documentation/How_Tos/Calc: WEEKNUM_ADD function|WEEKNUM_ADD]]</tt> を利用してください。
+
: ISO 週番号を用いない Excel 関数 <tt>'''WEEKNUM'''</tt> の機能を再現するには、<tt>[[Documentation/How_Tos/Calc: WEEKNUM_ADD function|WEEKNUM_ADD]]</tt> を利用してください。
  
 
=== Example: ===
 
=== Example: ===

Revision as of 09:19, 30 January 2011

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 と称されます。

Template:Documentation/SeeAlso

Personal tools