TIME
Returns the fractional-day serial for a time built from hour, minute, and second.
TIME normalizes overflowing and negative components by wrapping across day boundaries.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=TIME(hour, minute, second)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
hour | number | Required | — |
minute | number | Required | — |
second | number | Required | — |
Remarks
- The result is always in the range
0.0..1.0and represents only a time-of-day fraction. - Values are normalized like Excel (for example,
25hours becomes01:00:00). - Time fractions are date-system independent because they do not include a date component.
Examples
Build a time fraction from separate hour, minute and second values.
Formula =TIME(14,35,27)
Expected result 0.607951388888889
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Carry excess minutes into the hour.
Formula =TIME(1,90,0)
Expected result 0.104166666666667
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Midnight is the zero point of the time fraction.
Formula =TIME(0,0,0)
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The hour argument cannot be read from nonnumeric text.
Formula =TIME("hour",0,0)
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Create noon
Formula =TIME(12, 0, 0)
Expected result 0.5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Wrap overflowing hour
Formula =TIME(25, 0, 0)
Expected result 0.0416666666666667
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Can TIME return values greater than 1 day?
No. TIME wraps overflow and always returns a fraction in [0,1), so extra days are discarded.