MidnightSecondsFromTime function
Returns the number of seconds from midnight to the given time.
Namespace
datetime
Input
time(time
)
Output
seconds(int
)
Example
If basetime
contains the time 00:30:52
, then the two following functions are equivalent, and return the value 1852
:
set-column result datetime:MidnightSecondsFromTime('00:30:52')
set-column result datetime:MidnightSecondsFromTime(basetime)
Created in 2020 by Google Inc.