UNPKG

@ishubhamx/panchangam-js

Version:

Enhanced Indian Panchangam (Hindu Calendar) library with comprehensive Vedic features including Muhurta calculations, planetary positions, Rashi placements, and auspicious/inauspicious time calculations

48 lines 1.71 kB
import { Observer } from 'astronomy-engine'; /** * Get the 1-indexed Tithi (1-30) at an arbitrary point in time. * * This is ayanamsa-independent because the Moon−Sun difference cancels any * constant offset, so tropical longitudes are used directly. * * @param time - The instant at which to evaluate * @returns Tithi index (1-30) */ export declare function getTithiAtTime(time: Date): number; /** * Udaya Tithi Calculation * * Get the Tithi prevailing at sunrise (Udaya Tithi). * This is the correct method for determining festival dates per Hindu tradition. * * @param date - Date for which to find Udaya Tithi * @param sunrise - Sunrise time on that date * @param observer - Observer location * @returns Tithi index (1-30) prevailing at sunrise */ export declare function getTithiAtSunrise(date: Date, sunrise: Date, observer: Observer): number; /** * Check if a specific Tithi touches (is prevailing at) sunrise * * @param tithiIndex - Tithi to check (1-30) * @param date - Date to check * @param sunrise - Sunrise time * @param observer - Observer location * @returns true if the Tithi is prevailing at sunrise */ export declare function doesTithiTouchSunrise(tithiIndex: number, date: Date, sunrise: Date, observer: Observer): boolean; /** * Get detailed Udaya Tithi information including start/end times * * @param date - Date for calculation * @param sunrise - Sunrise time * @param observer - Observer location * @returns Detailed UdayaTithiInfo */ export declare function getUdayaTithiInfo(date: Date, sunrise: Date, observer: Observer): { tithi: number; paksha: string; tithiStart: Date; tithiEnd: Date; }; //# sourceMappingURL=udaya-tithi.d.ts.map