unix_seconds
function
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
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for