Rocky_Mountain_Vending/.pnpm-store/v10/files/56/67eae5a9924597bf0b6fb4744a827fddea2c88e810e635a9b7f598c61e5a8683ee880dc9a059f72fd4dc961794f55f5f6b2cd0aca99faec1c8ae7864aedf75
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

33 lines
996 B
Text

import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link differenceInCalendarYears} function options.
*/
export interface DifferenceInCalendarYearsOptions
extends ContextOptions<Date> {}
/**
* @name differenceInCalendarYears
* @category Year Helpers
* @summary Get the number of calendar years between the given dates.
*
* @description
* Get the number of calendar years between the given dates.
*
* @param laterDate - The later date
* @param earlierDate - The earlier date
* @param options - An object with options
* @returns The number of calendar years
*
* @example
* // How many calendar years are between 31 December 2013 and 11 February 2015?
* const result = differenceInCalendarYears(
* new Date(2015, 1, 11),
* new Date(2013, 11, 31)
* );
* //=> 2
*/
export declare function differenceInCalendarYears(
laterDate: DateArg<Date> & {},
earlierDate: DateArg<Date> & {},
options?: DifferenceInCalendarYearsOptions | undefined,
): number;