mysql get time from datetime
snippet in sql

mysql get time from datetime

user1321

SELECT 
date_format(datecol, '%H:%i:%s') as 'time' FROM table;
-- eg. 10:33:10

mysql get seconds from datetime

user9626

SECOND(created_at)