function Format(E)return string.format("\037\048\050\105",E)end function convertToHMS(E,R,U)local A=nil local J=(E-E%60)/60 E=E-J*60 local g=(J-J%60)/60 A=J-g*60 if U then return Format(g),Format(A),Format(E)end if R then else return Format(A)..("\058"..Format(E))end return Format(g)..("\058"..(Format(A)..("\058"..Format(E))))end return convertToHMS


function Format(p1)
	return string.format("%02i", p1);
end;
function convertToHMS(p2, p3, p4)
	local v1 = nil;
	local v2 = (p2 - p2 % 60) / 60;
	p2 = p2 - v2 * 60;
	local v3 = (v2 - v2 % 60) / 60;
	v1 = v2 - v3 * 60;
	if p4 then
		return Format(v3), Format(v1), Format(p2);
	end;
	if p3 then

	else
		return Format(v1) .. ":" .. Format(p2);
	end;
	return Format(v3) .. ":" .. Format(v1) .. ":" .. Format(p2);
end;
return convertToHMS;
