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