web/js/helpers/timer_display.js
/**
 * Renders a duration in milliseconds into a string
 * @example
 *
 *     numeric(2000) => '0:02'
 */
Renders a duration in milliseconds into a string
@example


Renders a duration in milliseconds into a string @example
function numeric (
  ms ,
  isRemaining ) {
  let { sign, hours, mins, secs } = parse(ms, isRemaining)
  if (hours > 0) {
    return `${sign}${hours}:${pad(mins)}:${pad(secs)}`
  } else {
    return `${sign}${mins}:${pad(secs)}`
  }
}
function numeric ( ms , isRemaining ) { let { sign , hours , mins , secs } = parse ( ms , isRemaining ) if ( hours > 0 ) { return ` ${ sign } ${ hours } ${ pad ( mins ) } ${ pad ( secs ) } ` } else { return ` ${ sign } ${ mins } ${ pad ( secs ) } ` } }
Renders a duration in milliseconds into a string
 @example
Renders a duration in milliseconds into a string @example
/*: number */ /*: ?boolean */