import { normalizeDates } from "./_lib-normalizeDates.js";
function differenceInCalendarMonths(laterDate, earlierDate, options) {
  const [laterDate_, earlierDate_] = normalizeDates(
    options?.in,
    laterDate,
    earlierDate
  );
  const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();
  const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();
  return yearsDiff * 12 + monthsDiff;
}
export {
  differenceInCalendarMonths as default,
  differenceInCalendarMonths
};
//# sourceMappingURL=differenceInCalendarMonths.js.map
