extensions/amp-date-countdown/1.0/date-countdown.js
/**
 * Format a number for output to the template.  Adds a leading zero if the
 * input is only one digit and a negative sign for inputs less than 0.
 * @param {number} input
 * @return {string}
 */
Format a number for output to the template.  Adds a leading zero if the
input is only one digit and a negative sign for inputs less than 0.
@param {number} input
@return {string}
Format a number for output to the template . Adds a leading zero if the input is only one digit and a negative sign for inputs less than 0 . @param { number } input @return { string }
function padStart(input) {
  if (input < -9 || input > 9) {
    return String(input);
  } else if (input >= -9 && input < 0) {
    return '-0' + -input;
  }
  return '0' + input;
}
function padStart ( input ) { if ( input < - 9 || input > 9 ) { return String ( input ) ; } else if ( input >= - 9 && input < 0 ) { return '-0' + - input ; } return '0' + input ; }
Format a number for output to the template.
Format a number for output to the template .