If its not much trouble, can you please provide the code to the
following question.
Write a program that will take time in seconds and output in hours,
minutes and seconds?
Regards,
Sam Swali
sam.swali <sam....@ntlworld.com> a écrit dans le message :
3A4309FE...@ntlworld.com...
function SecondsToHHMMSS ( Seconds : Integer ) : String;
var
HH, MM : Integer;
begin
HH := Trunc ( ( Seconds / 3600 ) );
Seconds := Seconds - ( HH * 3600 );
MM := Trunc ( (Seconds / 60) );
Seconds := Seconds - ( MM * 60 );
Result := IntToStr ( HH ) + ': '+ IntToStr ( MM ) + ': '+ IntToStr (
Seconds )
end;
Carsten
"sam.swali" <sam....@ntlworld.com> wrote in message
news:3A4309FE...@ntlworld.com...