timestamp_micros function

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

Creates a timestamp expr microseconds since UTC epoch.

Syntax

timestamp_micros(expr)

Arguments

  • expr: An integral numeric expression specifying microseconds.

Returns

A TIMESTAMP.

Examples

> SELECT timestamp_micros(1230219000123123);
 2008-12-25 07:30:00.123123