public static JulianDate getJulianEasterSunday ( final int nYear ) { final int a = nYear % 4 ; final int b = nYear % 7 ; final int c = nYear % 19 ; final int d = ( 19 * c + 15 ) % 30 ; final int e = ( 2 * a + 4 * b - d + 34 ) % 7 ; final int x = d + e + 114 ; final int nMonth = x / 31 ; final int nDay = ( x % 31 ) + 1 ; return JulianDate . of ( nYear , ( nMonth == 3 ? Month . MARCH : Month . APRIL ) . getValue ( ) , nDay ) ; }
Returns the easter Sunday within the julian chronology .