"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const getRoundingMethod = require("./_lib-getRoundingMethod.cjs");
const normalizeDates = require("./_lib-normalizeDates.cjs");
const constants = require("./constants.cjs");
function differenceInHours(laterDate, earlierDate, options) {
  const [laterDate_, earlierDate_] = normalizeDates.normalizeDates(
    options?.in,
    laterDate,
    earlierDate
  );
  const diff = (+laterDate_ - +earlierDate_) / constants.millisecondsInHour;
  return getRoundingMethod.getRoundingMethod(options?.roundingMethod)(diff);
}
exports.default = differenceInHours;
exports.differenceInHours = differenceInHours;
//# sourceMappingURL=differenceInHours.cjs.map
