Documentation/How Tos/Calc: TIMEVALUE function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 06:18, 29 December 2007 by Drking (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


TIMEVALUE

returns the date-time serial number, from a time as text.


Syntax:

TIMEVALUE (timetext)

timetext is a time, expressed as text.
TIMEVALUE returns the date-time serial number, which may be formatted to read as a time.


Example:

TIMEVALUE ("16:48:00")

returns 0.7, the date-time serial number for 16:48:00. This may be formatted to read, for example, 4:48 PM.


See also:

TIME, DATEVALUE

Date & Time functions

Date & Time overview


Issues:

The forthcoming ODFF standard requires TIMEVALUE to return the date-time serial number as a time, so Calc should automatically format the result as a time. However currently Calc seems to return the date-time serial number as a number, requiring the user to format the result manually. See Issue 84903

Personal tools