Rocky_Mountain_Vending/.pnpm-store/v10/files/fb/8c78a389acf8ecc5923b559bd49fd9eb0a694eda07fc75567eeeda403eb8b3e12070258b18da693d698f17fcca579401a5924dcd82931d7f58536746d5984d
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

24 lines
543 B
Text

"use strict";
exports.yearsToDays = yearsToDays;
var _index = require("./constants.cjs");
/**
* @name yearsToDays
* @category Conversion Helpers
* @summary Convert years to days.
*
* @description
* Convert a number of years to a full number of days.
*
* @param years - The number of years to be converted
*
* @returns The number of years converted in days
*
* @example
* // Convert 2 years into days
* const result = yearsToDays(2)
* //=> 730
*/
function yearsToDays(years) {
return Math.trunc(years * _index.daysInYear);
}