duration_sec

Description

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

Return type

duration

Domain

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

Categories

Usage

duration_sec(sec)

Argument

Type

Optional

Repeatable

Restrictions

sec

numeric

no

no

none

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.