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.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =TIME(hour, minute, second)

TIME
=TIME(9,30,0)

Arguments

NameRequiredWhat to pass
hourRequiredHour from 0 through 23. A larger hour is reduced with a 24-hour clock. 27 is 3.
minuteRequiredMinutes. 60 or more rolls into hours.
secondRequiredSeconds. 60 or more rolls into minutes.

Examples

9:30 in the morning

=TIME(9,30,0)

Result 9:30 AM

=TIME(B1,B2,B3)B4
Clock
AB
1Hour9
2Minute30
3Second0
4Time9:30 AM
A picture of the sheet, not a live calculator. TIME(9,75,0) is 10:15 AM, because 75 minutes roll into the hour.

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.