-
date and time functionsfunctions; date & timeFunction Wizard; date & time
-
-
-
Date & Time Functions
+
Date & Time Functions
These spreadsheet functions are used for inserting and editing dates and times.
@@ -46,6 +43,7 @@
$[officename] internally handles a date/time value as a numerical value. If you assign the numbering format "Number" to a date or time value, it is converted to a number. For example, 01/01/2000 12:00 PM, converts to 36526.5. The value preceding the decimal point corresponds to the date; the value following the decimal point corresponds to the time. If you do not want to see this type of numerical date or time representation, change the number format (date or time) accordingly. To do this, select the cell containing the date or time value, call its context menu and select Format Cells. The Numbers tab page contains the functions for defining the number format.
+
Date base for day zero
Dates are calculated as offsets from a starting day zero. You can set the day zero to be one of the following:
@@ -83,7 +81,7 @@
-
+Choose %PRODUCTNAME - PreferencesTools - Options - %PRODUCTNAME Calc - Calculate to select the date base.When you copy and paste cells containing date values between different spreadsheets, both spreadsheet documents must be set to the same date base. If date bases differ, the displayed date values will change!
@@ -101,124 +99,41 @@
Time zone information is not used in Date and Time functions and cells.
This function calculates a date specified by year, month, day and displays it in the cell's formatting. The default format of a cell containing the DATE function is the date format, but you can format the cells with any other number format.
+
DATE(Year; Month; Day)
@@ -47,5 +43,8 @@
=DATE(00;1;31) yields 1/31/00 if the cell format setting is MM/DD/YY.
+
+
+
diff --git a/source/text/scalc/01/func_datedif.xhp b/source/text/scalc/01/func_datedif.xhp
index 3d56e4a286..d6a1cb4650 100644
--- a/source/text/scalc/01/func_datedif.xhp
+++ b/source/text/scalc/01/func_datedif.xhp
@@ -1,7 +1,4 @@
-
-
-
-
-
-
+EDATE
@@ -31,9 +26,10 @@
EDATE function
-EDATE
-
+
EDATE
+
The result is a date which is a number of months away from the start date. Only months are considered; days are not used for calculation.
+
EDATE(StartDate; Months)
@@ -46,5 +42,8 @@
What date is one month prior to 2001-03-31?=EDATE("2001-03-31";-1) returns the serial number 36950. Formatted as a date, this is 2001-02-28.
+
+
+
diff --git a/source/text/scalc/01/func_eomonth.xhp b/source/text/scalc/01/func_eomonth.xhp
index 19f98584be..186c4e9488 100644
--- a/source/text/scalc/01/func_eomonth.xhp
+++ b/source/text/scalc/01/func_eomonth.xhp
@@ -1,7 +1,4 @@
-
-
-
-
-
-
+EOMONTH
@@ -31,9 +26,10 @@
EOMONTH function
-EOMONTH
-
+
EOMONTH
+
Returns the date of the last day of a month which falls months away from the start date.
+
EOMONTH(StartDate; Months)
@@ -45,6 +41,8 @@
=EOMONTH(DATE(2001;9;14);6) returns the serial number 37346. Formatted as a date, this is 2002-03-31.=EOMONTH("2001-09-14";6) works as well. If the date is given as string, it has to be in ISO format.
-
+
+
+
diff --git a/source/text/scalc/01/func_hour.xhp b/source/text/scalc/01/func_hour.xhp
index d4409245e5..9936d29149 100644
--- a/source/text/scalc/01/func_hour.xhp
+++ b/source/text/scalc/01/func_hour.xhp
@@ -1,7 +1,4 @@
-
-
-
-
-
-
+HOUR
@@ -31,9 +26,10 @@
HOUR function
-HOUR
-
+
HOUR
+
Returns the hour for a given time value. The hour is returned as an integer between 0 and 23.
+
HOUR(Number)
@@ -43,7 +39,8 @@
=HOUR(NOW()) returns the current hour=HOUR(C4) returns 17 if the contents of C4 = 17:20:00.
-
-YEAR, NOW, MINUTE, MONTH, DAY, WEEKDAY.
+
+
+
diff --git a/source/text/scalc/01/func_isoweeknum.xhp b/source/text/scalc/01/func_isoweeknum.xhp
index 9556aecd4b..96f58c8666 100644
--- a/source/text/scalc/01/func_isoweeknum.xhp
+++ b/source/text/scalc/01/func_isoweeknum.xhp
@@ -1,7 +1,4 @@
-
-
-
-
-
-
+ISOWEEKNUM
@@ -31,11 +26,12 @@
ISOWEEKNUM function
-ISOWEEKNUM
-
+
ISOWEEKNUM
+
ISOWEEKNUM calculates the week number of the year for the internal date value.
-The International Standard ISO 8601 has decreed that Monday shall be the first day of the week. A week that lies partly in one year and partly in another is assigned a number in the year in which most of its days lie. That means that week number 1 of any year is the week that contains the January 4th.
+The International Standard ISO 8601 has decreed that Monday shall be the first day of the week. A week that lies partly in one year and partly in another is assigned a number in the year in which most of its days lie. That means that week number 1 of any year is the week that contains the January 4th.
+
ISOWEEKNUM(Number)
@@ -45,5 +41,8 @@
=ISOWEEKNUM(DATE(1995;1;1)) returns 52. Week 1 starts on Monday, 1995-01-02.=ISOWEEKNUM(DATE(1999;1;1)) returns 53. Week 1 starts on Monday, 1999-01-04.
+
+
+
diff --git a/source/text/scalc/01/func_minute.xhp b/source/text/scalc/01/func_minute.xhp
index 91c4cb1c09..1bea6607f4 100644
--- a/source/text/scalc/01/func_minute.xhp
+++ b/source/text/scalc/01/func_minute.xhp
@@ -1,7 +1,4 @@
-
-
-
-
-
-
+MINUTE
@@ -31,9 +26,10 @@
MINUTE function
-MINUTE
-
+
MINUTE
+
Calculates the minute for an internal time value. The minute is returned as a number between 0 and 59.
+
MINUTE(Number)
@@ -45,5 +41,8 @@
=MINUTE(8.9999) returns 59=MINUTE(NOW()) returns the current minute value.
+
+
+
diff --git a/source/text/scalc/01/func_month.xhp b/source/text/scalc/01/func_month.xhp
index 038db6f654..9ae8ce5f5e 100644
--- a/source/text/scalc/01/func_month.xhp
+++ b/source/text/scalc/01/func_month.xhp
@@ -26,9 +26,10 @@
MONTH function
-MONTH
-
+
MONTH
+
Returns the month for the given date value. The month is returned as an integer between 1 and 12.
+
MONTH(Number)
@@ -38,5 +39,8 @@
=MONTH(NOW()) returns the current month.=MONTH(C4) returns 7 if you enter 2000-07-07 to cell C4 (that date value might get formatted differently after you press Enter).
+
+
+
diff --git a/source/text/scalc/01/func_networkdays.intl.xhp b/source/text/scalc/01/func_networkdays.intl.xhp
index 5df0a4556a..6433879244 100644
--- a/source/text/scalc/01/func_networkdays.intl.xhp
+++ b/source/text/scalc/01/func_networkdays.intl.xhp
@@ -51,10 +51,7 @@
The function can be used without the two optional parameters – weekday and holidays – by leaving them out:=NETWORKDAYS.INTL(C3;D3) gives 22 working days.
-
-
-
-Date functions
+