Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

microseconds to current time js code

function msToTime(s) {
  var ms = s % 1000;
  s = (s - ms) / 1000;
  var secs = s % 60;
  s = (s - secs) / 60;
  var mins = s % 60;
  var hrs = (s - mins) / 60;

  return hrs + ':' + mins + ':' + secs + '.' + ms;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #microseconds #current #time #js #code
ADD COMMENT
Topic
Name
9+7 =