1. Home
  2. Functions
  3. Date and time
  4. TIME

TIME function

Builds a time of day from hours, minutes and seconds.

Syntax

=TIME(hour, minute, second)

Arguments

ArgumentRequiredDescription
hourRequiredThe hour (values past 23 wrap around)
minuteRequiredThe minutes (values past 59 carry into hours)
secondRequiredThe seconds (values past 59 carry into minutes)

How to use TIME

TIME takes 3 required arguments. Type =TIME( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=TIME(12, 0, 0)Result 0.5, shown as 12:00 PM with a time format
=TIME(18, 0, 0)Result 0.75, shown as 6:00 PM with a time format
=TIME(27, 0, 0)Result 0.125, shown as 3:00 AM with a time format

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.