Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Feb 10, 2025
Send us feedback
unix_millis
Applies to: Databricks SQL Databricks Runtime
Returns the number of milliseconds since 1970-01-01 00:00:00 UTC.
1970-01-01 00:00:00 UTC
unix_millis(expr)
expr: A TIMESTAMP expression.
expr
A BIGINT.
The function truncates higher levels of precision.
> SELECT unix_millis(TIMESTAMP('1970-01-01 00:00:01Z')); 1000
unix_date function
unix_micros function
unix_seconds function