Skip to main content
Version: Next

as_secs

Converts a duration into seconds.

as_secs(x:duration) -> float

Description

The as_secs function converts duration value into seconds.

Examples

Convert a duration into seconds

from { x: as_secs(42ms) }
{x: 0.042}

See Also

from_epoch_ms, now, since_epoch