Overview
TheTIMESTAMP_MICROS()
function converts a given UNIX timestamp value in microseconds since 1970-01-01 00:00:00 UTC into a timestamp. Its syntax can be seen below:
BIGINT
expression representing a UNIX timestamp in microseconds and the return data type is a timestamp.
Examples
Case #1: Basic TIMESTAMP_MICROS()
function
The below example uses the TIMESTAMP_MICROS()
function to convert a given UNIX timestamp in microseconds into a timestamp without a timezone: