{"ast":null,"code":"import { millisecondsInHour } from \"./constants.mjs\";\n\n/**\n * @name hoursToMilliseconds\n * @category  Conversion Helpers\n * @summary Convert hours to milliseconds.\n *\n * @description\n * Convert a number of hours to a full number of milliseconds.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param hours - number of hours to be converted\n *\n * @returns The number of hours converted to milliseconds\n *\n * @example\n * // Convert 2 hours to milliseconds:\n * const result = hoursToMilliseconds(2)\n * //=> 7200000\n */\nexport function hoursToMilliseconds(hours) {\n  return Math.trunc(hours * millisecondsInHour);\n}\n\n// Fallback for modularized imports:\nexport default hoursToMilliseconds;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}