Calc TIME function

Returns the serial number of a particular time.

Help CentreFunctions & Formulas

For a full list of available calculation functions, please read What calculation functions are supported.

This article describes the formula syntax and usage of the TIME function.


Description

Returns the serial number of a particular time.


Syntax

TIME(hour, minute, second)


The TIME function syntax has the following arguments:
  • hour - Required. The hour of the day, from 0 (zero) to 23.
  • minute - Required. The minute of the hour, from 0 (zero) to 59.
  • second - Required. The second of the minute, from 0 (zero) to 59.

Remarks

  • The TIME function returns a decimal number that represents a particular time. For example, TIME(12,0,0) returns 0.5 because it represents noon, which is half of a day.
  • If any argument is outside its range, TIME returns the #VALUE! error value.

Example

FormulaDescriptionResult
=TIME(12,30,0)Returns the serial number for 12:30 PM.0.5208333333
(12:30 PM)

Errors

For a full list of formula errors, please read Formula errors.


Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.