Overview
TheUNIX_MILLIS()
function returns a given timestamp to a UNIX timestamp in milliseconds from 1970-01-01 00:00:00-00 (can be negative). Its syntax is illustrated below:
BIGINT
representing time in milliseconds.
Examples
Case #1: Basic UNIX_MILLIS()
function
The below example uses the UNIX_MILLIS()
function to convert a given timestamp into a UNIX timestamp in milliseconds: