Dates & time
Scalar
epoch_ns()
Extract the epoch component in nanoseconds from a temporal type
Arguments & returns
7 overloadsepoch_ns(temporal)
Scalar
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
In other engines
Snowflakedatediff()
DATEDIFF(NANOSECOND, start_time, end_time)
EPOCH_NS(CAST(end_time AS TIMESTAMP_NS)) - EPOCH_NS(CAST(start_time AS TIMESTAMP_NS))