@Test public void testJulianEaster() { Assert.assertEquals(Utilities.julianEaster(2008, true), new Day(2008, Month.April, 26)); Assert.assertEquals(Utilities.julianEaster(2009, true), new Day(2009, Month.April, 18)); Assert.assertEquals(Utilities.julianEaster(2010, true), new Day(2010, Month.April, 3)); Assert.assertEquals(Utilities.julianEaster(2011, true), new Day(2011, Month.April, 23)); Assert.assertEquals(Utilities.julianEaster2(2008, true), new Day(2008, Month.April, 26)); Assert.assertEquals(Utilities.julianEaster2(2009, true), new Day(2009, Month.April, 18)); Assert.assertEquals(Utilities.julianEaster2(2010, true), new Day(2010, Month.April, 3)); Assert.assertEquals(Utilities.julianEaster2(2011, true), new Day(2011, Month.April, 23)); Assert.assertEquals(Utilities.julianEaster3(2008, true), new Day(2008, Month.April, 26)); Assert.assertEquals(Utilities.julianEaster3(2009, true), new Day(2009, Month.April, 18)); Assert.assertEquals(Utilities.julianEaster3(2010, true), new Day(2010, Month.April, 3)); Assert.assertEquals(Utilities.julianEaster3(2011, true), new Day(2011, Month.April, 23)); }
@Deprecated public static Day julianEaster(int year, boolean gregorian) { int a = year % 19; int b = year % 4; int c = year % 7; int d = (19 * a + 15) % 30; int e = (2 * b + 4 * c + 6 * d + 6) % 7; int z = 4 + d + e; int month, day; int de = d + e; if (de < 10) { month = 3; day = 22 + de; } else { month = 4; day = de - 9; } Day easter = new Day(year, Month.valueOf(month - 1), day - 1); if (gregorian) { return easter.plus(13); } else { return easter; } }
Utilities { @Deprecated public static Day julianEaster(int year, boolean gregorian) { int a = year % 19; int b = year % 4; int c = year % 7; int d = (19 * a + 15) % 30; int e = (2 * b + 4 * c + 6 * d + 6) % 7; int z = 4 + d + e; int month, day; int de = d + e; if (de < 10) { month = 3; day = 22 + de; } else { month = 4; day = de - 9; } Day easter = new Day(year, Month.valueOf(month - 1), day - 1); if (gregorian) { return easter.plus(13); } else { return easter; } } }
Utilities { @Deprecated public static Day julianEaster(int year, boolean gregorian) { int a = year % 19; int b = year % 4; int c = year % 7; int d = (19 * a + 15) % 30; int e = (2 * b + 4 * c + 6 * d + 6) % 7; int z = 4 + d + e; int month, day; int de = d + e; if (de < 10) { month = 3; day = 22 + de; } else { month = 4; day = de - 9; } Day easter = new Day(year, Month.valueOf(month - 1), day - 1); if (gregorian) { return easter.plus(13); } else { return easter; } }  }
Utilities { @Deprecated public static Day julianEaster(int year, boolean gregorian) { int a = year % 19; int b = year % 4; int c = year % 7; int d = (19 * a + 15) % 30; int e = (2 * b + 4 * c + 6 * d + 6) % 7; int z = 4 + d + e; int month, day; int de = d + e; if (de < 10) { month = 3; day = 22 + de; } else { month = 4; day = de - 9; } Day easter = new Day(year, Month.valueOf(month - 1), day - 1); if (gregorian) { return easter.plus(13); } else { return easter; } }  static int[] daysCount(TsDomain domain); static int[] daysCount(TsDomain domain, DayOfWeek day); static Day easter(int y); static Day easter2(int y); @Deprecated static Day julianEaster(int year, boolean gregorian); @Deprecated static Day julianEaster2(int year, boolean gregorian); static int julianDate2JDN(int year, int month, int day); static int gregorianDate2JDN(int year, int month, int day); static Day JDN2GregorianDate(int jdn); static Day julianEaster3(int year, boolean gregorian); static Day firstWeekDay(DayOfWeek day, int year, Month month); static int[] lastDay(TsDomain domain); static void leapYear(TsPeriod start, DataBlock buffer); static void lengthofPeriod(TsPeriod start, DataBlock buffer); static double logJacobian(LengthOfPeriodType kind, TsDomain domain,
            boolean back); @Deprecated static int[][] tradingDays(TsDomain domain); static int[][] tdCount(TsDomain domain); static void transform(LengthOfPeriodType kind, TsData tsdata,
            boolean back); static double probJulianEaster(int pos); static double probEaster(int pos); }
Utilities { @Deprecated public static Day julianEaster(int year, boolean gregorian) { int a = year % 19; int b = year % 4; int c = year % 7; int d = (19 * a + 15) % 30; int e = (2 * b + 4 * c + 6 * d + 6) % 7; int z = 4 + d + e; int month, day; int de = d + e; if (de < 10) { month = 3; day = 22 + de; } else { month = 4; day = de - 9; } Day easter = new Day(year, Month.valueOf(month - 1), day - 1); if (gregorian) { return easter.plus(13); } else { return easter; } }  static int[] daysCount(TsDomain domain); static int[] daysCount(TsDomain domain, DayOfWeek day); static Day easter(int y); static Day easter2(int y); @Deprecated static Day julianEaster(int year, boolean gregorian); @Deprecated static Day julianEaster2(int year, boolean gregorian); static int julianDate2JDN(int year, int month, int day); static int gregorianDate2JDN(int year, int month, int day); static Day JDN2GregorianDate(int jdn); static Day julianEaster3(int year, boolean gregorian); static Day firstWeekDay(DayOfWeek day, int year, Month month); static int[] lastDay(TsDomain domain); static void leapYear(TsPeriod start, DataBlock buffer); static void lengthofPeriod(TsPeriod start, DataBlock buffer); static double logJacobian(LengthOfPeriodType kind, TsDomain domain,
            boolean back); @Deprecated static int[][] tradingDays(TsDomain domain); static int[][] tdCount(TsDomain domain); static void transform(LengthOfPeriodType kind, TsData tsdata,
            boolean back); static double probJulianEaster(int pos); static double probEaster(int pos); static final double LUNARY; }