J joann Unregistered / Unconfirmed GUEST, unregistred user! 2010-03-21 #1 time1:=16:55:49;time2:=16:36:45select time1-time2 结果为1144000,求助答案是怎么出来的?
J joann Unregistered / Unconfirmed GUEST, unregistred user! 2010-03-21 #3 time1:=16:55:49;time2:=16:36:45select time1-time2 结果为1144000,求助答案是怎么出来的?
S skyccf Unregistered / Unconfirmed GUEST, unregistred user! 2010-03-21 #4 select DATEDIFF(Ms,time2 ,time1)给分,呵呵
肥 肥牛 Unregistered / Unconfirmed GUEST, unregistred user! 2010-03-22 #5 用过DELPHI就知道,时间的基数是毫秒,就像DELPHI里的Timer控件中1000就是1秒。你的两个时间差是19分零4秒,换成秒就是1144秒,换成毫秒就是1144000。
K KevinJo Unregistered / Unconfirmed GUEST, unregistred user! 2010-06-30 #9 delphi:strtodatetime('16:55:49') - strtodatetime('16:36:45')) * 24 * 60 * 60 * 1000SQL:select datediff(ms, '16:36:45','16:55:49')
delphi:strtodatetime('16:55:49') - strtodatetime('16:36:45')) * 24 * 60 * 60 * 1000SQL:select datediff(ms, '16:36:45','16:55:49')