如何得到现在时间加5分钟以后的时间? 如何得到现在时间加5分钟以后的时间?label1.caption:=timetostr(now);我想让lable2.caption:=现在时间加5分钟之后的时间? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 dd,mm,ss,mesc :word;tt:real;decodetime(time,dd,mm,ss,mesc);tt:=mm+5; if tt>=60 thenbegin mm:=tt-60; inc(dd);end;encodetime(dd,mm,ss,mesc); procedure TForm1.Button1Click(Sender: TObject);var d: tdatetime;begin d:=now+strtodatetime('00:05:00'); showmessage(datetimetostr(d));end; 同意: erice function IncMinute(const AValue: TDateTime; const ANumberOfMinutes: Int64 = 1): TDateTime;直接调用它就行了 erice的不对吧,我调试了, fjyhs的可以,但天了,月了,年了,就不行了 label1.Caption := TimeToStr(Now + 5.0 / 1440); // 现在时间加5分钟之后的时间 同意kyee(浪子阿鹏) var a: TDateTime; b: string; c: double; //需要相加的分钟数,5分钟begin ... a := ... //赋值,时间 b := DateTimeToStr(a + c/1440); ...end; var nowdatetime,lastdatetiem:datetime;begin nowdatetime:=now; lastdatetime:=nowdatetime+5*1/24;end ADOQuery用like过滤时出错 排序问题,,请大家看一下... 关于DBGRID显示的问题,急!!!!!!!!!!! 求助一个你们编程也会遇见的问题 TreeView中Ttreenode结点的Data属性有时取不出来 请问怎样获得TImage中图像的文件名 路过.......................... 类变量间的赋值 为啥把文件删除放入回收站的代码在2000下不能用???----〉〉〉〉〉 请问ODBC如何设置? 关于数据库数据写到word文档的错误 将动态数组用多线程导入SQL SERVER库中,高分
tt:real;
decodetime(time,dd,mm,ss,mesc);
tt:=mm+5;
if tt>=60 then
begin
mm:=tt-60;
inc(dd);
end;
encodetime(dd,mm,ss,mesc);
var d: tdatetime;
begin
d:=now+strtodatetime('00:05:00');
showmessage(datetimetostr(d));
end;
erice
var
a: TDateTime;
b: string;
c: double; //需要相加的分钟数,5分钟
begin
...
a := ... //赋值,时间
b := DateTimeToStr(a + c/1440);
...
end;
nowdatetime,lastdatetiem:datetime;
begin
nowdatetime:=now;
lastdatetime:=nowdatetime+5*1/24;
end