[ad_1]
How to calculate time difference in HH:MM:SS format in SQLite?
SELECT time(strftime('%s','2017-11-01 22:25:28') - strftime('%s','2017-11-01'));
gives me:
12:00:00
and
SELECT datetime(strftime('%s','2017-11-01 22:25:28') - strftime('%s','2017-11-01'));
gives me:
-4492-12-04 12:00:00
[ad_2]
لینک منبع