This is a deprecated version of the SnowConvert documentation, please visit the official site HEREarrow-up-right.
Process how many seconds have passed since midnight for a given time.
PUBLIC.SECONDS_PAST_MIDNIGHT_UDF(INPUT TIME)
INPUT TIME
INPUT
The time to calculate how many seconds have passed since midnight.
A varchar that indicates how many seconds have passed since midnight.
varchar
Input:
Output:
Last updated 1 year ago
SELECT PUBLIC.SECONDS_PAST_MIDNIGHT_UDF(TIME'10:30:45');
'37845'