import { __require as requireDatepart } from './datepart.mjs';

var minutes;
var hasRequiredMinutes;
function requireMinutes() {
  if (hasRequiredMinutes) return minutes;
  hasRequiredMinutes = 1;
  const DatePart = requireDatepart();
  class Minutes extends DatePart {
    constructor(opts = {}) {
      super(opts);
    }
    up() {
      this.date.setMinutes(this.date.getMinutes() + 1);
    }
    down() {
      this.date.setMinutes(this.date.getMinutes() - 1);
    }
    setTo(val) {
      this.date.setMinutes(parseInt(val.substr(-2)));
    }
    toString() {
      let m = this.date.getMinutes();
      return this.token.length > 1 ? String(m).padStart(2, '0') : m;
    }
  }
  minutes = Minutes;
  return minutes;
}

export { requireMinutes as __require };
