Function · Date and time
Excel TIME function
The Excel TIME function builds a time from an hour, a minute, and a second. TIME(9, 30, 0) is 9:30 AM, serial 0.395833.
Syntax =TIME(hour, minute, second)
=TIME(9,30,0)Arguments
| Name | Required | What to pass |
|---|---|---|
| hour | Required | Hour from 0 through 23. A larger hour is reduced with a 24-hour clock. 27 is 3. |
| minute | Required | Minutes. 60 or more rolls into hours. |
| second | Required | Seconds. 60 or more rolls into minutes. |
Examples
9:30 in the morning
=TIME(9,30,0)Result 9:30 AM
| A | B | |
|---|---|---|
| 1 | Hour | 9 |
| 2 | Minute | 30 |
| 3 | Second | 0 |
| 4 | Time | 9:30 AM |
TIME builds a time serial from three numbers. Nine hours and 30 minutes is 9:30 AM. Excel stores that as a fraction of a day, 9.5/24, which is about 0.395833. Add it to a date serial and you get a date and a time together. The grid shows 9:30 AM because that is the formatted value. The number underneath is the fraction.
Minutes and seconds overflow. TIME(9, 75, 0) is 10:15 AM. Hours at 24 or more wrap around the clock, so TIME(27, 0, 0) is 3:00 AM and the extra day is not kept. A negative part is #NUM!. NOW returns the current date and time from the computer’s clock. TIME builds a time you name. The 9:30 AM picture on the NOW page is a frozen clock. This function is how you would write that time on purpose.