Пример #1
0
        public static LocalDate CalcFeastResurrection(LocalDate dateWithYear)
        {
            int year = dateWithYear.CopticToGregorian().WithCalendar(CalendarSystem.Julian).Year;

            // From https://en.wikipedia.org/wiki/Date_of_Easter#Julian_calendar
            int goldenNum = (year) % 19;

            (int month, int day) = JulianPaschalFullMoons[goldenNum];
            var pashcalFullMoon = new LocalDate(year, month, day, CalendarSystem.Julian);

            return(pashcalFullMoon.WithCalendar(CalendarSystem.Gregorian)
                   .Next(IsoDayOfWeek.Sunday)
                   .WithCalendar(CalendarSystem.Coptic));
        }