to_milliseconds
to_milliseconds(duration: duration) -> float64
Convert a duration to a number of milliseconds.
The input is always of type duration, the output is a float64 representing the number of milliseconds (whole and fractions) of that duration.
Domain
This is a scalar function (calculates a single output value for a single input row).
Categories
Examples
make_col milliseconds:to_milliseconds(stopTime - startTime)
Assuming stopTime and startTime are timestamps, subtracting them yields a duration.
That duration is then converted to number of milliseconds using to_milliseconds.
Updated 8 days ago