duration_sec

duration_sec(sec: numeric) -> duration

The input is a number representing a number of seconds, the output is that quantity as type duration.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col dur:duration_sec(1.5)

Turns the value 1.5 into a duration quantity of a second and a half, or 1500 milliseconds.