/
SecondsSinceFromTimestamp function
SecondsSinceFromTimestamp function
Returns the number of seconds between two time stamp objects.
Namespace
datetime
Input
timestamp(timestamp
|string
), timestamp base(timestamp
|string
)
Output
second(int
)
Example
If timestamp
contains the time stamp 2008–08–18 22:30:52
, and basetimestamp
contains the timestamp 2008–08–19 22:30:52
, then the two following functions are equivalent, and return the value -86400
:
set-column result datetime:SecondsSinceFromTimestamp('2008–08–18 22:30:52', '2008–08–19 22:30:52')
set-column result datetime:SecondsSinceFromTimestamp(timestamp, basetimestamp)
Related content
DaysSinceFromDate function
DaysSinceFromDate function
More like this
NGramTransform Spark Compute Analytics (Deprecated)
NGramTransform Spark Compute Analytics (Deprecated)
More like this
Splunk Streaming Source
Splunk Streaming Source
More like this
Google Ads Multiple Report Batch Source (Deprecated)
Google Ads Multiple Report Batch Source (Deprecated)
More like this
Google Ads Single Report Batch Source (Deprecated)
Google Ads Single Report Batch Source (Deprecated)
More like this
Google Cloud BigQuery Execute Action
Google Cloud BigQuery Execute Action
More like this
Created in 2020 by Google Inc.