Dates & time
Scalar
epoch_ms()
Extract the epoch component in milliseconds from a temporal type
Arguments & returns
8 overloadsepoch_ms(temporal)
Scalar
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
In other engines
BigQueryunix_millis()
SELECT UNIX_MILLIS('2008-12-25 15:30:00+00')
SELECT EPOCH_MS(CAST('2008-12-25 15:30:00+00' AS TIMESTAMPTZ))
Snowflakedate_part()
SELECT DATE_PART(epoch_milliseconds, foo) as ddate from table_name
SELECT EPOCH_MS(foo) AS ddate FROM table_name