Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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