Rocky_Mountain_Vending/.pnpm-store/v10/files/f3/34973dc7cca419604a99cacc2ed6e7af8271377b476dfeeb88e7da1bb410bc35f215b1aa16a8715ba7150e4b5b8149bb89abcb0676c6b671af0a3044141c67
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

29 lines
916 B
Text

import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link differenceInYears} function options.
*/
export interface DifferenceInYearsOptions extends ContextOptions<Date> {}
/**
* @name differenceInYears
* @category Year Helpers
* @summary Get the number of full years between the given dates.
*
* @description
* Get the number of full 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 full years
*
* @example
* // How many full years are between 31 December 2013 and 11 February 2015?
* const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31))
* //=> 1
*/
export declare function differenceInYears(
laterDate: DateArg<Date> & {},
earlierDate: DateArg<Date> & {},
options?: DifferenceInYearsOptions | undefined,
): number;