S stenfu Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-31 #1 怎么得到两个时间日期的时间差值,最好由秒表示,有没有这个函数
U units Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-06 #2 好像直接相减就可以了,你试试看 datetimepicker1.datetime-datetimepicker2.datetime
L linqi07 Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-06 #5 也可以转化成整数相减比较 StrToInt(FormatDateTime('HHNNSS',datetime1))- StrToInt(FormatDateTime('HHNNSS',datetime2))-
也可以转化成整数相减比较 StrToInt(FormatDateTime('HHNNSS',datetime1))- StrToInt(FormatDateTime('HHNNSS',datetime2))-
U units Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-06 #6 也一样阿,faint,控件里面的那个属性就是日期时间类型的阿
S stenfu Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-06 #7 也可以转化成整数相减比较 StrToInt(FormatDateTime('HHNNSS',datetime1))- StrToInt(FormatDateTime('HHNNSS',datetime2))- 我需要的是时间日期型,不是时间型的可不可以如下 StrToInt(FormatDateTime('YYYYMMDDHHNNSS',datetime1))- StrToInt(FormatDateTime('YYYYMMDDHHNNSS',datetime2))-
也可以转化成整数相减比较 StrToInt(FormatDateTime('HHNNSS',datetime1))- StrToInt(FormatDateTime('HHNNSS',datetime2))- 我需要的是时间日期型,不是时间型的可不可以如下 StrToInt(FormatDateTime('YYYYMMDDHHNNSS',datetime1))- StrToInt(FormatDateTime('YYYYMMDDHHNNSS',datetime2))-
原 原野飞侠 Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-06 #8 去这里看看 http://www.delphibbs.com/delphibbs/dispq.asp?lid=1131624
H haoqing Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-06 #9 function SecondsBetween(const ANow, AThen: TDateTime): Int64;
1 12345 Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-06 #11 ard: double; ard:=datatime1-datatiem2