1,184
社区成员
发帖
与我相关
我的任务
分享
xxx : array[0..9] of string=('0','1'
var
Hour, Min, Sec, MSec: Word;
time : TDateTime ;
begin
time := now;
DecodeTime(time, Hour, Min, Sec, MSec);
result:=xxx[Hour div 10]+xxx[Hour mod 10]+":"+xxx[Min div 10]+xxx[Min mod 10];
end;