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.
If expr is out of the range representable as a TIMESTAMP, Azure Databricks raises ARITHMETIC_OVERFLOW.
Common error conditions
Examples
> SELECT timestamp_seconds(1230219000);
2008-12-25 07:30:00
> SELECT timestamp_seconds(1230219000.123);
2008-12-25 07:30:00.123
> SELECT timestamp_seconds(1230219000123123);
Error: ARITHMETIC_OVERFLOW