import { getRoundingMethod } from "./_lib-getRoundingMethod.js";
import { normalizeDates } from "./_lib-normalizeDates.js";
import { millisecondsInHour } from "./constants.js";
function differenceInHours(laterDate, earlierDate, options) {
  const [laterDate_, earlierDate_] = normalizeDates(
    options?.in,
    laterDate,
    earlierDate
  );
  const diff = (+laterDate_ - +earlierDate_) / millisecondsInHour;
  return getRoundingMethod(options?.roundingMethod)(diff);
}
export {
  differenceInHours as default,
  differenceInHours
};
//# sourceMappingURL=differenceInHours.js.map
