timestamp_millis function

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime

Creates a timestamp expr milliseconds since UTC epoch.

Syntax

timestamp_millis(expr)

Arguments

  • expr: An integral numeric expression specifying milliseconds.

Returns

A TIMESTAMP.

Examples

> SELECT timestamp_millis(1230219000123);
 2008-12-25 07:30:00.123