理论少说,实战吧
uses DateUtils //添加日期单元
多少小时:
Edit1.Text:=FloatToStr(HoursBetween(-693593,0)+HoursBetween(now,0) );
多少分:
Edit1.Text:=FloatToStr(MinutesBetween(-693593,0)+MinutesBetween(now,0) );
多少秒
Edit1.Text:=FloatToStr(SecondsBetween(-693593,0)+SecondsBetween(now,0) );
提示:-693593表示:0001-01-01