Rocky_Mountain_Vending/.pnpm-store/v10/files/72/188a72705e7929a3aa083cb6f34dedaca71ef7f5143fac85282fef508c223d0febb8be372558423468c2331e0210fd8998e9a118d9408c71d92235a07d3902
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

32 lines
812 B
Text

"use strict";
exports.getDaysInYear = getDaysInYear;
var _index = require("./isLeapYear.cjs");
var _index2 = require("./toDate.cjs");
/**
* The {@link getDaysInYear} function options.
*/
/**
* @name getDaysInYear
* @category Year Helpers
* @summary Get the number of days in a year of the given date.
*
* @description
* Get the number of days in a year of the given date.
*
* @param date - The given date
* @param options - An object with options
*
* @returns The number of days in a year
*
* @example
* // How many days are in 2012?
* const result = getDaysInYear(new Date(2012, 0, 1))
* //=> 366
*/
function getDaysInYear(date, options) {
const _date = (0, _index2.toDate)(date, options?.in);
if (Number.isNaN(+_date)) return NaN;
return (0, _index.isLeapYear)(_date) ? 366 : 365;
}