secondsToHours.d.cts 557 B

1234567891011121314151617181920212223
  1. /**
  2. * @name secondsToHours
  3. * @category Conversion Helpers
  4. * @summary Convert seconds to hours.
  5. *
  6. * @description
  7. * Convert a number of seconds to a full number of hours.
  8. *
  9. * @param seconds - The number of seconds to be converted
  10. *
  11. * @returns The number of seconds converted in hours
  12. *
  13. * @example
  14. * // Convert 7200 seconds into hours
  15. * const result = secondsToHours(7200)
  16. * //=> 2
  17. *
  18. * @example
  19. * // It uses floor rounding:
  20. * const result = secondsToHours(7199)
  21. * //=> 1
  22. */
  23. export declare function secondsToHours(seconds: number): number;