time() Function

Function

time( hour, minute, second, millisecond )

Converts the given time into an equivalent time value.

Parameters

Keyword Type Description

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.

Returns

Time

Usage considerations

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).

Examples

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, Oct 22, 2021 (11:11:24 AM)

On This Page

FEEDBACK