On 2019-10-17 10:50, Klaus major-k via use-livecode wrote:
save some lines by setting the numberformat first (lazy moi :-)

...


Save even more lines by using format, div and mod...

function formatRemainingTime pSeconds
return format("%02d:%02d:%02d", pSeconds div 3600, (pSeconds mod 3600) div 60, pSeconds mod 60)
end formatRemainingTime

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to