Rocky_Mountain_Vending/.pnpm-store/v10/files/be/e75968c9818a77d00f551a1d13f04d1eaab4043666bfda19f3dde2e37f0e975543be552ffc05835950e2f3309a6d006f0bf86aa5081a3118c8b1f2b1b4a5b1
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

19 lines
538 B
Text

"use strict";
exports.setFullYear = setFullYear;
var _index = require("../_lib/jalali.cjs");
/**
*
* @param cleanDate {Date}
* @param args
* @returns {number}
*/
function setFullYear(cleanDate, ...args) {
const gd = cleanDate.getDate();
const gm = cleanDate.getMonth() + 1;
const gy = cleanDate.getFullYear();
const j = (0, _index.toJalali)(gy, gm, gd);
const [year, month = j.jm - 1, date = j.jd] = args;
const g = (0, _index.toGregorian)(year, month + 1, date);
return cleanDate.setFullYear(g.gy, g.gm - 1, g.gd);
}