Rocky_Mountain_Vending/.pnpm-store/v10/files/44/78048bae6b9ce22636e24970f986b2afb727746bb54f2c4482eecd479b9085ebf774800ba5057f3277b795d984a25edc2d18805ea6160628fb824cf7baf999
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

30 lines
702 B
Text

"use strict";
exports.secondsToHours = secondsToHours;
var _index = require("./constants.cjs");
/**
* @name secondsToHours
* @category Conversion Helpers
* @summary Convert seconds to hours.
*
* @description
* Convert a number of seconds to a full number of hours.
*
* @param seconds - The number of seconds to be converted
*
* @returns The number of seconds converted in hours
*
* @example
* // Convert 7200 seconds into hours
* const result = secondsToHours(7200)
* //=> 2
*
* @example
* // It uses floor rounding:
* const result = secondsToHours(7199)
* //=> 1
*/
function secondsToHours(seconds) {
const hours = seconds / _index.secondsInHour;
return Math.trunc(hours);
}