"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const interval = require("./src-interval.cjs");
const millisecond = interval.timeInterval(() => {
}, (date, step) => {
  date.setTime(+date + step);
}, (start, end) => {
  return end - start;
});
millisecond.every = (k) => {
  k = Math.floor(k);
  if (!isFinite(k) || !(k > 0)) return null;
  if (!(k > 1)) return millisecond;
  return interval.timeInterval((date) => {
    date.setTime(Math.floor(date / k) * k);
  }, (date, step) => {
    date.setTime(+date + step * k);
  }, (start, end) => {
    return (end - start) / k;
  });
};
millisecond.range;
exports.millisecond = millisecond;
//# sourceMappingURL=src-millisecond.cjs.map
