Poznámka
Na prístup k tejto stránke sa vyžaduje oprávnenie. Môžete sa skúsiť prihlásiť alebo zmeniť adresáre.
Na prístup k tejto stránke sa vyžaduje oprávnenie. Môžete skúsiť zmeniť adresáre.
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