SecondsFromTime function

Returns the seconds portion of a time.

Namespace

datetime

Input

time(time|string)

Output

second(int)

Example

If basetime contains the time 22:30:52, then the two following functions are equivalent, and return the value 52:

set-column result datetime:SecondsFromTime('22:30:52') set-column result datetime:SecondsFromTime(basetime)

 

Created in 2020 by Google Inc.