main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

31
node_modules/date-fns/secondsToHours.mjs generated vendored Normal file
View File

@@ -0,0 +1,31 @@
import { secondsInHour } from "./constants.mjs";
/**
* @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
*/
export function secondsToHours(seconds) {
const hours = seconds / secondsInHour;
return Math.trunc(hours);
}
// Fallback for modularized imports:
export default secondsToHours;