Script Name: CalculationOfTime
Script Description: Didn't you ever wonder about converting seconds in a format like days hours:minutes:seconds? - Here's a pretty easy solution
Original Author(s): Markus "Dual" Quär
Core Version: 2.6.3
function CalculationOfTime(NumberOfSeconds: integer): string;
begin
Result:= IntToStr(NumberOfSeconds / 60 / 60 / 24) + 'd ' + IntToStr((NumberOfSeconds / 60 / 60) MOD 24) + ':' + IntToStr((NumberOfSeconds / 60) MOD 60) + ':' + IntToStr(NumberOfSeconds MOD 60) + 'h';
end;