Times I get (65000 records, subtracting 2 fields defined as text in the same table) gives me following times: method with julianday 0.4 secs method with unixepoch 0.6 secs using ctime etc. via VB wrapper 1.2 secs
RBS On Tue, Oct 2, 2012 at 7:39 PM, Igor Tandetnik <itandet...@mvps.org> wrote: > On 10/2/2012 1:00 PM, Bart Smissaert wrote: >> >> Is there a way to subtract times in the text format hh:mm:ss >> and return the difference in the same format? > > > select time(julianday('03:22:11') - julianday('01:22:33') - .5); > select time(strftime('%s', '03:22:11') - strftime('%s', '01:22:33'), > 'unixepoch'); > > Both of these return '01:59:38'. > -- > Igor Tandetnik > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users