SELECT TIMEDIFF(t1, t2) as diff FROM tab
SELECT TIME_TO_SEC(TIMEDIFF(time_out, time_in)) timespan_in_second FROM tablename
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)