UNPKG

better-suncalc

Version:

A tiny TypeScript library for calculating sun/moon positions and phases.

21 lines 910 B
/** * Contains vernal/autumnal equinox dates within a specified time range. */ export type EquinoxData = { /** Vernal (spring) equinox dates (northern hemisphere) in UTC */ vernal: Date[]; /** Autumnal (fall) equinox dates (northern hemisphere) in UTC */ autumnal: Date[]; }; /** * Finds all equinox events (vernal and autumnal) occurring within the given date range. * The algorithm uses an approximate guess per year then refines the guess via Newton’s method. * * The returned object contains arrays of Date objects for the vernal and autumnal equinoxes. * * @param rangeStart - Starting Date of the search range. * @param rangeEnd - Ending Date of the search range. * @returns Object with keys 'vernal' and 'autumnal', each an array of Date instances. */ export declare function getEquinoxes(rangeStart: Date, rangeEnd: Date): EquinoxData; //# sourceMappingURL=equinox.d.ts.map