{"ast":null,"code":"import { minutesInHour } from \"./constants.mjs\";\n\n/**\n * @name hoursToMinutes\n * @category Conversion Helpers\n * @summary Convert hours to minutes.\n *\n * @description\n * Convert a number of hours to a full number of minutes.\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 in minutes\n *\n * @example\n * // Convert 2 hours to minutes:\n * const result = hoursToMinutes(2)\n * //=> 120\n */\nexport function hoursToMinutes(hours) {\n  return Math.trunc(hours * minutesInHour);\n}\n\n// Fallback for modularized imports:\nexport default hoursToMinutes;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}