/
EpochFromTimestamp function
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)
Related content
Converting Timestamp types to Date in Wrangler
Converting Timestamp types to Date in Wrangler
Read with this
DaysSinceFromDate function
DaysSinceFromDate function
More like this
NGramTransform Spark Compute Analytics (Deprecated)
NGramTransform Spark Compute Analytics (Deprecated)
More like this
Apache Kudu Batch Source (Deprecated)
Apache Kudu Batch Source (Deprecated)
More like this
Splunk Streaming Source
Splunk Streaming Source
More like this
GitHub Batch Source (Deprecated)
GitHub Batch Source (Deprecated)
More like this
Created in 2020 by Google Inc.