UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

9 lines • 544 B
import { EasterComputus } from "../types/holiday-rule.js"; /** * Epoch day of Easter Sunday of `year` under the computus, or `null` outside Temporal's range. * * The Gregorian method is applied proleptically before 1583 (Temporal dates are proleptic * Gregorian). The Julian date is moved to ISO by adding ⌊Y/100⌋ − ⌊Y/400⌋ − 2 days, the * Julian-to-Gregorian difference from 1 March onward (Meeus ch. 7, Julian Day with B = 0). */ export declare function easterEpochDay(year: number, computus: EasterComputus): number | null;