timestamp_seconds function (Databricks SQL)

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