Skip to content

TIME_TO_SEC

  • time: This represents the time value that would be converted into seconds. The time value must be in the format ‘HH
SELECT TIME_TO_SEC('22:23:00');
80280

This SQL function converts a time value in the format of ‘HH:MM:SS’ into seconds. In this example, it converts ‘22:23:00’ into 80280 seconds.