Procedure ConvertTime(AiData : Integer; Out AoHour, AoMin, AoSec : Integer);
Var
iSec : Integer;
Begin
iSec := AiData * 3;
AoSec := iSec Mod 60;
iSec := iSec Div 60;
AoMin := iSec Mod 60;
AoHour := iSec Div 60;
End;
procedure TForm1.Button1Click(Sender: TObject);
Var
iHour, iMin, iSec : Integer;
begin
ConvertTime(14515, iHour, iMin, iSec);
Edit1.Text := Format('%d:%d:%d', [iHour, iMin, iSec]);
end;