SECOND() — Returns the seconds of the minute as a floating point value.
SECOND( timestamp-value )
The SECOND() function returns an floating point value between 0 and 60 representing the whole and fractional part of the number of seconds in the minute of a timestamp value. This function produces the same result as using the SECOND keyword with the EXTRACT() function.
The following example uses the HOUR(), MINUTE(), and SECOND() functions to return the time portion of a TIMESTAMP value in a formatted string.
SELECT eventname, CAST(HOUR(starttime) AS VARCHAR) || ' hours, ' || CAST(MINUTE(starttime) AS VARCHAR) || ' minutes, and ' || CAST(SECOND(starttime) AS VARCHAR) || ' seconds.' AS timestring FROM event;