Difference between revisions of "Documentation/How Tos/Calc: DAYS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
m |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE: DAYS function}} |
+ | {{Documentation/CalcFunc DateTimeTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_NETWORKDAYS_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_DAYS360_function | ||
+ | }}__NOTOC__ | ||
== DAYS == | == DAYS == | ||
Line 17: | Line 22: | ||
: where cell A1 contains the date <tt>'''2008-06-09'''</tt> and A2 contains <tt>'''2008-06-02'''</tt> returns <tt>'''7'''</tt>. | : where cell A1 contains the date <tt>'''2008-06-09'''</tt> and A2 contains <tt>'''2008-06-02'''</tt> returns <tt>'''7'''</tt>. | ||
− | {{ | + | === Issues: === |
+ | * Note that <tt>'''DAYS'''</tt> does not count the first day of the period, but <tt>'''NETWORKDAYS'''</tt> does. | ||
+ | * <tt>'''DAYS'''</tt> is not portable to Excel. | ||
+ | * <tt>'''DAYS'''</tt> really does return <tt>'''enddate - startdate'''</tt>; thus if either date has a time component (for example "2008-01-03T15:15"), the number of days returned may not be integer. To ensure an integer result, consider <tt>'''INT(DAYS())'''</tt>. | ||
+ | |||
+ | {{SeeAlso|EN| | ||
* [[Documentation/How_Tos/Calc: DAYS360 function|DAYS360]] | * [[Documentation/How_Tos/Calc: DAYS360 function|DAYS360]] | ||
* [[Documentation/How_Tos/Calc: NETWORKDAYS function|NETWORKDAYS]] | * [[Documentation/How_Tos/Calc: NETWORKDAYS function|NETWORKDAYS]] | ||
Line 30: | Line 40: | ||
* [[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]] | |
− | + | ||
− | + | ||
− | + | ||
− | + |