select CAST( strftime('%s',datetime(date_end, time_end ) ) AS LONG ), CAST( strftime('%s',datetime(date_start, time_start ) ) AS LONG) from _variables;
select STRFTIME("%H:%M:%S", CAST( strftime('%s',datetime(date_end, time_end ) ) AS LONG ) - CAST( strftime('%s',datetime(date_start, time_start ) ) AS LONG) )from _variables;
Используйте параметр 'localtime':
DATE('Ваше время', 'localtime')