formatted time from seconds
let's say you time an action in your app and it takes 215 seconds.
you don't want to tell the user "215", you want to show them the duration in an "hh:mm:ss" format.
the standard advice is to use a date library, but i found a much simpler and faster way:
it (almost) goes without saying that it only supports up to 23h59m59s max...
var seconds = 215;
var strTime=new Date( seconds * 1000 ).toUTCString().split(" ");
alert(strTime); // shows "00:03:35"
short, simple, works in IE6+, and has no messy loops.