hoursToSeconds.d.ts 453 B

123456789101112131415161718
  1. /**
  2. * @name hoursToSeconds
  3. * @category Conversion Helpers
  4. * @summary Convert hours to seconds.
  5. *
  6. * @description
  7. * Convert a number of hours to a full number of seconds.
  8. *
  9. * @param hours - The number of hours to be converted
  10. *
  11. * @returns The number of hours converted in seconds
  12. *
  13. * @example
  14. * // Convert 2 hours to seconds:
  15. * const result = hoursToSeconds(2)
  16. * //=> 7200
  17. */
  18. export declare function hoursToSeconds(hours: number): number;