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
Creates timestamp expr
seconds since UTC epoch.
Syntax
timestamp_seconds(expr)
Arguments
expr
: An numeric expression specifying seconds.
Returns
A TIMESTAMP.
Examples
> SELECT timestamp_seconds(1230219000);
2008-12-25 07:30:00
> SELECT timestamp_seconds(1230219000.123);
2008-12-25 07:30:00.123