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

From Apache OpenOffice Wiki
Jump to: navigation, search
m
(See also:)
Line 21: Line 21:
 
'''[[Documentation/How_Tos/Calc: DATE function|DATE]]''',
 
'''[[Documentation/How_Tos/Calc: DATE function|DATE]]''',
 
'''[[Documentation/How_Tos/Calc: TIMEVALUE function|TIMEVALUE]]'''
 
'''[[Documentation/How_Tos/Calc: TIMEVALUE function|TIMEVALUE]]'''
 +
 +
'''[[Documentation/How_Tos/Calc: Date & Time functions#Date and Time overview|Date & Time overview]]'''
  
 
'''[[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]'''
 
'''[[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: Functions listed alphabetically|'''Functions listed alphabetically''']],
 +
[[Documentation/How_Tos/Calc: Functions listed by category|'''Functions listed by category''']]

Revision as of 07:10, 12 September 2008


TIME

returns the time, given hours, minutes and seconds.

Syntax:

TIME(hours; minutes; seconds)

returns the time, expressed as a date-time serial number. hours, minutes and seconds are integers.


If hours, minutes and seconds are not within range for a valid time, the time will 'roll over', as shown below.

Example:

TIME(9; 31; 20)

returns the time 9:31:20 am (as a date-time serial number).

TIME(9; 31; 75)

returns 9:32:15 am - the time rolls over, as there are only 60 seconds in a minute.

See also:

DATE, TIMEVALUE

Date & Time overview

Date & Time functions

Functions listed alphabetically, Functions listed by category

Personal tools