procedure TForm1.Button1Click(Sender: TObject); var D:TDateTime; begin D:=now; Edit1.Text:=DateTimeToStr(D); D:=D+1/24/60; Edit2.Text:=DateTimeToStr(D); end;实际上TDateTime加一是加一天,加一分钟换算一下就可以。
Returns a date/time value shifted by a specified number of minutes.UnitDateUtilsCategorydatetime routinesDelphi syntax:function IncMinute(const AValue: TDateTime; const ANumberOfMinutes: Int64 = 1): TDateTime;
你要以在http://www.playicq.com/dispdocnew.php?id=6300下载本人的这个程序.
var
D:TDateTime;
begin
D:=now;
Edit1.Text:=DateTimeToStr(D);
D:=D+1/24/60;
Edit2.Text:=DateTimeToStr(D);
end;实际上TDateTime加一是加一天,加一分钟换算一下就可以。