Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 04, 2022
Send us feedback
unix_seconds
Returns the number of seconds since 1970-01-01 00:00:00 UTC.
1970-01-01 00:00:00 UTC
unix_seconds(expr)
expr: A TIMESTAMP expression.
expr
A BIGINT.
The function truncates higher levels of precision.
> SELECT unix_seconds(TIMESTAMP('1970-01-01 00:00:01Z')); 1
unix_date function
unix_micros function
unix_millis function