TimeFromComponents function

Returns a time from the given hours, minutes, seconds, and nanoseconds, given as four separate values.

Namespace

datetime

Input

hours(int),minutes(int),seconds(int),nano(int),

Output

time(time)

Example

If hour contains the value 10minutes contains the value 12seconds contains the value 2, and nanoseconds contains 0, then the two following functions are equivalent, and return the time 10:12:02.0

set-column result datetime:TimeFromComponents(10, 12, 2, 0) set-column result datetime:TimeFromComponents(hour, minutes, seconds, nanoseconds)



Created in 2020 by Google Inc.