Description
Returns the Unix Time for a datetime value.Syntax
ToUnixTime(datetime_expression)
Examples
ToUnixTime(ToDate('2014-11-01T23:30:00+02:00')) returns 1414877400
Convert a datetime value to Unix time (seconds since epoch). Use TOUNIXTIME for timestamp conversions and epoch calculations in ETL data pipelines.
ToUnixTime(datetime_expression)
ToUnixTime(ToDate('2014-11-01T23:30:00+02:00')) returns 1414877400
Was this page helpful?