I am trying to convert seconds into hours, mins, secs.
{@Test}
ToNumber (244800)
{@Test2}
WhilePrintingRecords;
NumberVar TotalSec := {@Test};
NumberVar Hours := Truncate (Remainder ( TotalSec,86400) / 3600);
NumberVar Minutes := Truncate (Remainder ( TotalSec,3600) / 60);
NumberVar Seconds := Remainder ( TotalSec , 60);
Totext ( Hours, '00', 0,'') + ':'+
Totext ( Minutes,'00', 0,'') + ':'+
Totext ( Seconds,'00', 0,'')
The result is 20:00:00
244,800 secs should be 68 hours, anyone have any idea whats wrong here?
thanks
{@Test}
ToNumber (244800)
{@Test2}
WhilePrintingRecords;
NumberVar TotalSec := {@Test};
NumberVar Hours := Truncate (Remainder ( TotalSec,86400) / 3600);
NumberVar Minutes := Truncate (Remainder ( TotalSec,3600) / 60);
NumberVar Seconds := Remainder ( TotalSec , 60);
Totext ( Hours, '00', 0,'') + ':'+
Totext ( Minutes,'00', 0,'') + ':'+
Totext ( Seconds,'00', 0,'')
The result is 20:00:00
244,800 secs should be 68 hours, anyone have any idea whats wrong here?
thanks