Skip to main content

time_from_micros function

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 18.3 and above

Creates a TIME value from the number of microseconds since midnight.

Syntax

time_from_micros(expr)

Arguments

  • expr: An integral numeric expression representing microseconds since midnight (0 to 86399999999).

Returns

A TIME.

Examples

SQL
> SELECT time_from_micros(52200500000);
14:30:00.500000

> SELECT time_from_micros(0);
00:00:00