youtube/plugin.js
function secondsToHms(seconds) {
	var h = Math.floor(seconds / 3600);
	var m = Math.floor((seconds / 60) % 60);
	var s = seconds % 60;

	var pad = function (n) {
		n = String(n);
		return n.length >= 2 ? n : "0" + n;
	};

	if (h > 0) {
		return pad(h) + ':' + pad(m) + ':' + pad(s);
	}
	else {
		return pad(m) + ':' + pad(s);
	}
}
function secondsToHms(seconds) {
	var h = Math.floor(seconds / 3600);
	var m = Math.floor((seconds / 60) % 60);
	var s = seconds % 60;

	var pad = function (n) {
		n = String(n);
		return n.length >= 2 ? n : "0" + n;
	};

	if (h > 0) {
		return pad(h) + ':' + pad(m) + ':' + pad(s);
	}
	else {
		return pad(m) + ':' + pad(s);
	}
}
function secondsToHms ( seconds ) { var h = Math . floor ( seconds / 3600 ) ; var m = Math . floor ( ( seconds / 60 ) % 60 ) ; var s = seconds % 60 ; var pad = function ( n ) { n = String ( n ) ; return n . length >= 2 ? n : "0" + n ; } ; if ( h > 0 ) { return pad ( h ) + ':' + pad ( m ) + ':' + pad ( s ) ; } else { return pad ( m ) + ':' + pad ( s ) ; } }
Converts seconds to hms format
Converts seconds to hms format