Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

time converter

0 views
Skip to first unread message

sam.swali

unread,
Dec 22, 2000, 2:59:58 AM12/22/00
to
Hello Programmers,

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

Frédéric Gélinas

unread,
Dec 22, 2000, 9:49:16 PM12/22/00
to
so easy... why don't you use your brain a little? have you always got what
you want this easy? WORK!

sam.swali <sam....@ntlworld.com> a écrit dans le message :
3A4309FE...@ntlworld.com...

Telia

unread,
Apr 9, 2001, 7:32:42 AM4/9/01
to
Something like this would do I guess:

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...

0 new messages