TO_UNIX_EPOCH_SECONDS
Convert a date to its Epoch (Unix) seconds representation.
Syntax
Arguments
Name | Type | Description | Default Value |
---|---|---|---|
date | timestamp |
Returns
bigint
Examples
date | Output |
---|---|
timestamp '2018-03-10 08:55:12.456' | 1520672112 |
Transformation job example
SQL
Query result
date | Output |
---|---|
timestamp '2018-03-10 08:55:12.456' | 1520672112 |
Last updated