TIMESTAMP_MILLIS
Description
The TIMESTAMP_MILLIS function is used to convert the number of milliseconds since the Unix epoch (00:00:00 UTC on January 1, 1970) into a timestamp format.
Parameter Description
- millis: bigint type, representing the number of milliseconds since the Unix epoch.
Return Result
Returns a value in timestamp format, representing the exact date and time corresponding to the input milliseconds.
Usage Example
- Convert the current time's milliseconds into timestamp format:
- Convert specific milliseconds to a timestamp and display the result:
- Convert the past time in milliseconds to a timestamp and compare it with the current timestamp: