time() Function

Converts the given time into an equivalent time value.


time( hour, minute, second, [millisecond] )

hour: (Integer) The number of hours to add to the total.

minute: (Integer) The number of minutes to add to the total.

second: (Integer) The number of seconds to add to the total.

millisecond: (Integer) The number of milliseconds to add to the total.




The time can be treated both as duration (for example, Joe ran the marathon in 3 hours and 23 minutes) and as a point in time (for example, we have a meeting at 3:23PM every day).


You can experiment with this function in the test box below.

Test Input

time(14,20,23) returns 2:20 PM

Open in Github Built: Fri, Mar 11, 2022 (04:59:07 PM)

On This Page