怎么得到当前秒?(20分)

解决方案 »

  1.   

    var a:string;
    begin
      a:=FormatDateTime('ss',time);
    end;
      

  2.   

    nowsecond:=Rightstr(datetimetostr(now()),2);
      

  3.   

    var
      h,m,s,ms:word;
    begin
      DecodeTime(Time,h,m,s,ms);
    end;s的植就是当前秒
      

  4.   

    先用now的到当前时间,再用decodetime得到秒,具体看看help
      

  5.   

    我作到了,谢谢,我用的是formatdatetime