Answers for "convert seconds to minutes and seconds delphi"

0

convert seconds to minutes and seconds delphi

var
  secs: integer;
  str: string;
begin
  secs := 236;
  // SecsPerDay comes from the SysUtils unit.
  str := FormatDateTime('nn:ss', secs / SecsPerDay));

  // If you need hours, too, just add "hh:" to the formatting string
  secs := 32236;
  str := FormatDateTime('hh:nn:ss', secs / SecsPerDay));
end;
Posted by: Guest on April-29-2022

Code answers related to "convert seconds to minutes and seconds delphi"

Browse Popular Code Answers by Language