Skip to main content
Version: Next

since_epoch

Interprets a time value as duration since the Unix epoch.

since_epoch(x:time) -> duration

Description

The since_epoch function turns a time value into a duration since the Unix epoch, i.e., since 00:00:00 UTC on January 1970.

Examples

Retrive the Unix time for a given date

from { x: since_epoch(2021-02-24) }
{x: 18682.0d}

See Also

as_secs, from_epoch_ms, now