Skip to main content
Scalar function
NULL value yields NULL. NULL/unknown unit raises an error; non-finite input or overflow raises an error.

Syntax

Scalar

Arguments

Returns

  • Type: TIMESTAMP with UTC timezone
  • NULL behavior: NULL value yields NULL. NULL/unknown unit raises an error; non-finite input or overflow raises an error.

Properties

Units

  • Input unit: Epoch seconds or milliseconds UTC
  • Output unit: Microsecond UTC timestamp
  • Seconds * 1000000; milliseconds * 1000.

Usage notes

  • Second aliases: SECOND, SECONDS, SEC, SECS, S. Millisecond aliases: MILLISECOND, MILLISECONDS, MILLI, MILLIS, MS, MSEC.
  • Unit matching trims whitespace and ignores case.
  • Floats truncate converted microseconds toward zero; decimals round halfway away from zero.

Examples

Basic example

Equivalent inputs in different units

Both inputs represent the same instant after the Unix epoch.
Last modified on October 15, 2026