totimespan
The totimespan function converts the input expression into a time interval, in seconds.
This output format differs from the standard Kusto
totimespanfunction, which returns a timespan.To convert
datetime(Unix time) into astring, or vice versa, use thestrftimeandstrptimefunctions.
Syntax
totimespan( Expression )
Arguments
- Expression: Expression that will be converted to timespan.
Returns
If the conversion is successful, the result will be the number of seconds in the interval. Otherwise, the result will be null.
Example
This example returns 3660:
print totimespan( "0.01:01:00" )