Skip to content

Instantly share code, notes, and snippets.

View wajatimur's full-sized avatar
⚔️
mode - python

Azri Jamil wajatimur

⚔️
mode - python
View GitHub Profile
@wajatimur
wajatimur / sectotime.pas
Created August 2, 2011 15:41
Convert Second To TIme.
function SecToTime(Sec: Integer): string;
var
H, M, S: string;
ZH, ZM, ZS: Integer;
begin
ZH := Sec div 3600;
ZM := Sec div 60 - ZH * 60;
ZS := Sec - (ZH * 3600 + ZM * 60) ;
H := IntToStr(ZH) ;
M := IntToStr(ZM) ;