duration_ms(ms: numeric) -> duration

The input is a number representing a number of milliseconds, 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_ms(2300)

Turns the value 2300 into a duration quantity of 2300 milliseconds, or 2.3 seconds.