SUBTIME() mengembalikan expr1 − expr2 dinyatakan sebagai nilai dalam format yang sama dengan expr1. expr1 adalah ekspresi waktu atau waktu, dan expr2 adalah ekspresi waktu.
SELECT SUBTIME('2007-12-31 23:59:59.999999','1 1:1:1.000002');
'2007-12-30 22:58:58.999997'
SELECT SUBTIME('01:00:00.999999', '02:00:00.999998');
'-00:59:59.999999'
Resolution of this function's return type is performed as it is for the ADDTIME() function; see the description of that function for more information.
SELECT SUBTIME('2007-12-31 23:59:59.999999','1 1:1:1.000002');
'2007-12-30 22:58:58.999997'
SELECT SUBTIME('01:00:00.999999', '02:00:00.999998');
'-00:59:59.999999'