sqlite> select strftime('%H:%M',
strftime('%s', replace('17h40', 'h' , ':'))
- strftime('%s', replace ('15h30', 'h' , ':')),
'unixepoch');
02:10
sqlite>
所以,
sqlite> select strftime('%H:%M',
strftime('%s', replace(FIRSTHOUR, 'h' , ':'))
- strftime('%s', replace (SECONDHOUR, 'h' , ':')),
'unixepoch');
另外,
sqlite> select strftime('%H:%M',
julianday(replace('17h40', 'h' , ':'))
- julianday(replace ('15h30', 'h' , ':'))
- 0.5);
02:10
sqlite>
所以,
sqlite> select strftime('%H:%M',
julianday(replace(FIRSTHOUR, 'h' , ':'))
- julianday(replace (SECONDHOUR, 'h' , ':'))
- 0.5);
它的工作原理謝謝! – jerem