UNPKG

easter-date

Version:

Calculate the date of Easter for a given year

22 lines (21 loc) 579 B
/** * Returns the date of Easter for a given year. * Function is an alias for getEasterSunday() function * @param year */ export declare function getEaster(year: number): Date; /** * Returns true if the given date is Easter Sunday. * @param date */ export declare function isEaster(date: Date): boolean; /** * Returns the date of Easter for a given year. * @param year */ export declare function getEasterSunday(year: number): Date; /** * Returns true if the given date is Easter Sunday. * @param date */ export declare function isEasterSunday(date: Date): boolean;