code: function getTime(ts) {
  		function pad2(n) {
  			return n < 10 ? '0' + n : n;
  		}
  
  		function pad3(n) {
  			return n < 10 ? '00' + n : (n < 100 ? '0' + n : n);
  		}
  
  		return pad2(ts.getHours()) + ':' +
  			pad2(ts.getMinutes()) + ':' +
  			pad2(ts.getSeconds()) + '.' +
  			pad3(ts.getMilliseconds());
  	}
docs: timestamp output