Difference between revisions of "Documentation/How Tos/Calc: WEEKNUM ADD function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m (→See also:) |
|||
Line 22: | Line 22: | ||
=== See also: === | === See also: === | ||
'''[[Documentation/How_Tos/Calc: WEEKNUM function|WEEKNUM]]''' | '''[[Documentation/How_Tos/Calc: WEEKNUM function|WEEKNUM]]''' | ||
+ | |||
+ | '''[[Documentation/How_Tos/Calc: YEAR function|YEAR]]''', | ||
+ | '''[[Documentation/How_Tos/Calc: MONTH function|MONTH]]''', | ||
+ | '''[[Documentation/How_Tos/Calc: DAY function|DAY]]''', | ||
+ | '''[[Documentation/How_Tos/Calc: WEEKDAY function|WEEKDAY]]''', | ||
+ | '''[[Documentation/How_Tos/Calc: HOUR function|HOUR]]''', | ||
+ | '''[[Documentation/How_Tos/Calc: MINUTE function|MINUTE]]''', | ||
+ | '''[[Documentation/How_Tos/Calc: SECOND function|SECOND]]''' | ||
'''[[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]''' | '''[[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]''' |
Revision as of 12:49, 18 January 2008
WEEKNUM_ADD
Returns the non-ISO week number of a given date.
This function is only available if the Analysis AddIn is installed.
Syntax:
WEEKNUM_ADD(date; mode)
- returns the 'conventional' non-ISO week number, where week 1 is the week that contains January 1st.
- 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.
- WEEKNUM_ADD mimics the behaviour of the WEEKNUM function in Excel. Calc's WEEKNUM function returns the international standard ISO8601 week number.
Example:
WEEKNUM_ADD("2010/01/07"; 2)
- returns 2. 7Jan10 is a Thursday, and 1Jan10 is the Friday of the preceding week.
See also:
YEAR, MONTH, DAY, WEEKDAY, HOUR, MINUTE, SECOND
Issues:
- WEEKNUM_ADD is called WEEKNUM in the forthcoming ODFF standard.