web/console/node_modules/date-difference/index.js
/*
The formatDate function outputs the Years, Days, Hours, Minutes,
Seconds, and Milliseconds
*/
The formatDate function outputs the Years, Days, Hours, Minutes,
Seconds, and Milliseconds
The formatDate function outputs the Years Days Hours Minutes Seconds and Milliseconds
function formatDate(ms) {
  if (typeof ms !== 'number') {
    throw new TypeError('Expected a number');
  }
  return {
    years: Math.floor(ms / 31536000000),
    days: Math.floor(ms / 86400000 % 365),
    hours: Math.floor(ms / 3600000 % 24),
    minutes: Math.floor(ms / 60000 % 60),
    seconds: Math.floor(ms / 1000 % 60),
    milliseconds: Math.floor(ms % 1000)
  };
}
function formatDate ( ms ) { if ( typeof ms !== 'number' ) { throw new TypeError ( 'Expected a number' ) ; } return { years : Math . floor ( ms / 31536000000 ) , days : Math . floor ( ms / 86400000 % 365 ) , hours : Math . floor ( ms / 3600000 % 24 ) , minutes : Math . floor ( ms / 60000 % 60 ) , seconds : Math . floor ( ms / 1000 % 60 ) , milliseconds : Math . floor ( ms % 1000 ) } ; }
The formatDate function outputs the Years, Days, Hours, Minutes,
Seconds, and Milliseconds
The formatDate function outputs the Years Days Hours Minutes Seconds and Milliseconds