function pad2 (num) {
  var str = String(num)

  // istanbul ignore next: num is current datetime
  return (str.length === 1 ? '0' : '') + str
}
Pad number to two digits.

@private
@param {number} num
@return {string}