B
bj_2005
Unregistered / Unconfirmed
GUEST, unregistred user!
这是一条计算当前时间离给定的时间相差多少分钟的算式,我敢打赌这是最菜的办法,求更简单的办法.
showmessage(inttostr(strtoint(FormatDateTime('hh',now-strtodatetime('13:06')))*60+strtoint(FormatDateTime('nn',now-strtodatetime('13:06')))));
showmessage(inttostr(strtoint(FormatDateTime('hh',now-strtodatetime('13:06')))*60+strtoint(FormatDateTime('nn',now-strtodatetime('13:06')))));