SECONDS_PAST_MIDNIGHT_UDF

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Definition

Process how many seconds have passed since midnight for a given time.

PUBLIC.SECONDS_PAST_MIDNIGHT_UDF(INPUT TIME)

Parameters

INPUT TIME

The time to calculate how many seconds have passed since midnight.

Returns

A varchar that indicates how many seconds have passed since midnight.

Usage example

Input:

SELECT PUBLIC.SECONDS_PAST_MIDNIGHT_UDF(TIME'10:30:45');

Output:

'37845'

Last updated