Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Databricks SQL
Databricks Runtime
Returns the number of seconds since 1970-01-01 00:00:00 UTC
.
Syntax
unix_seconds(expr)
Arguments
expr
: A TIMESTAMP expression.
Returns
A BIGINT.
The function truncates higher levels of precision.
Examples
> SELECT unix_seconds(TIMESTAMP('1970-01-01 00:00:01Z'));
1