EpochFromTimestamp function
Returns a UNIX Epoch time value from the given timestamp.
Namespace
datetime
Input
timestamp(timestamp
|string
)
Output
epoch time(long
)
Example
If basetimestamp
contains the value 2009–02–13 23:31:30
, then the two following functions are equivalent, and return the value 1234567890
set-column result datetime:EpochFromTimestamp('2009–02–13 23:31:30')
set-column result datetime:EpochFromTimestamp(basetimestamp)
Created in 2020 by Google Inc.