Difference between revisions of "Documentation/How Tos/Calc: WEEKSINYEAR function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE: WEEKSINYEAR function}} |
+ | {{Documentation/CalcFunc DateTimeTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_WEEKS_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_WEEKNUM_function | ||
+ | }}__NOTOC__ | ||
== WEEKSINYEAR == | == WEEKSINYEAR == | ||
Line 20: | Line 25: | ||
=== Issues: === | === Issues: === | ||
− | * <tt>'''WEEKSINYEAR'''</tt> is not part of the | + | * <tt>'''WEEKSINYEAR'''</tt> is not part of the ODFF international standard, and should not be regarded as portable. It is not available in Excel. |
− | {{ | + | {{SeeAlso|EN| |
* [[Documentation/How_Tos/Calc: ISLEAPYEAR function|ISLEAPYEAR]] | * [[Documentation/How_Tos/Calc: ISLEAPYEAR function|ISLEAPYEAR]] | ||
* [[Documentation/How_Tos/Calc: DAYSINYEAR function|DAYSINYEAR]] | * [[Documentation/How_Tos/Calc: DAYSINYEAR function|DAYSINYEAR]] | ||
Line 34: | Line 39: | ||
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Date and Time functions]] |
Latest revision as of 14:03, 30 January 2024
< {{#switch:Previous Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} | {{#switch:Next Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} > |
WEEKSINYEAR
Returns the number of weeks in a year.
This function is only available if the Analysis AddIn is installed.
Syntax:
WEEKSINYEAR(date)
- returns the number of weeks in the year in which date lies.
- A week is considered to start on Monday, and is considered to be in the year if most of its days are in that year.
Example:
WEEKSINYEAR("2010-02-14")
- returns 52, the number of weeks in 2010.
WEEKSINYEAR("2009-02-14")
- returns 53, the number of weeks in 2009. In 2009, both 1st January and 31st December fall on a Thursday; the weeks containing 1st January and 31st December both have most of their days in 2009, and therefore both are counted.
Issues:
- WEEKSINYEAR is not part of the ODFF international standard, and should not be regarded as portable. It is not available in Excel.
{{#switch:EN
| RU = Смотрите также:
| UA = Дивіться також:
| EN = See Also
| PT = Ver também
| #default = See Also
}}