Difference between revisions of "Documentation/How Tos/Calc: TIMEVALUE function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE: TIMEVALUE function}}
 +
{{Documentation/CalcFunc DateTimeTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_TIME_function
 +
|NextPage=Documentation/How_Tos/Calc:_EOMONTH_function
 +
}}__NOTOC__
  
 
== TIMEVALUE ==
 
== TIMEVALUE ==
returns the date-time serial number, from a time as text.  
+
returns the date-time serial number, from a time given as text.  
 
+
  
 
=== Syntax: ===
 
=== Syntax: ===
<tt>'''TIMEVALUE (timetext)'''</tt>
+
<tt>'''TIMEVALUE(timetext)'''</tt>
 
: <tt>'''timetext'''</tt> is a time, expressed as text.
 
: <tt>'''timetext'''</tt> is a time, expressed as text.
  
 
: <tt>'''TIMEVALUE '''</tt> returns the date-time serial number, which may be formatted to read as a time.
 
: <tt>'''TIMEVALUE '''</tt> returns the date-time serial number, which may be formatted to read as a time.
 
  
 
=== Example: ===
 
=== Example: ===
<tt>'''TIMEVALUE ("16:48:00")'''</tt>
+
<tt>'''TIMEVALUE("16:48:00")'''</tt>
 
: returns <tt>'''0.7'''</tt>, the date-time serial number for 16:48:00. This may be formatted to read, for example, <tt>'''4:48 PM'''</tt>.
 
: returns <tt>'''0.7'''</tt>, the date-time serial number for 16:48:00. This may be formatted to read, for example, <tt>'''4:48 PM'''</tt>.
  
 +
{{SeeAlso|EN|
 +
* [[Documentation/How_Tos/Calc: TIME function|TIME]]
 +
* [[Documentation/How_Tos/Calc: DATEVALUE function|DATEVALUE]]
  
=== See also: ===
+
* [[Documentation/How_Tos/Calc: Date & Time functions#Date and Time overview|Date & Time overview]]
'''[[Documentation/How_Tos/Calc: TIME function|TIME]]''',
+
'''[[Documentation/How_Tos/Calc: DATEVALUE function|DATEVALUE]]'''
+
 
+
'''[[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]'''
+
 
+
'''[[Documentation/How_Tos/Calc: Date & Time functions#Date and Time overview|Date & Time overview]]'''
+
  
 +
* [[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]
  
=== Issues: ===
+
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
The forthcoming ODFF standard requires <tt>'''TIMEVALUE'''</tt> 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 [http://www.openoffice.org/issues/show_bug.cgi?id=84903 Issue 84903]
+
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 +
[[Category: Documentation/Reference/Calc/Date and Time functions]]

Latest revision as of 13:53, 30 January 2024



TIMEVALUE

returns the date-time serial number, from a time given 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
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_TIMEVALUE_function&oldid=259696"
Views
Personal tools
Navigation
Tools