// OrthodoxByYear returns time.Time for midnight on Orthodox Easter of a given year
// use Meeus Julian algorithm and return time based on Gregorian calendar
//
// @param int year The year as a number greater than 325
// @return time.Time The easter date as a time.Time
// @return errors.Error Error if exists, else nil
OrthodoxByYear returns time.Time for midnight on Orthodox Easter of a given year
use Meeus Julian algorithm and return time based on Gregorian calendar

@param int year The year as a number greater than 325
@return time.Time The easter date as a time.Time
@return errors.Error Error if exists, else nil
// OrthodoxByYear returns time . Time for midnight on Orthodox Easter of a given year // use Meeus Julian algorithm and return time based on Gregorian calendar // // @param int year The year as a number greater than 325 // @return time . Time The easter date as a time . Time // @return errors . Error Error if exists else nil
func OrthodoxByYear(year int) (time.Time, error) {
	if year < 326 {
		return time.Now(), errors.New("year have to be greater than 325")
	}
	var a, b, c, d, e int
	var month time.Month
	var day float64
	a = year % 4
	b = year % 7
	c = year % 19
	d = (19*c + 15) % 30
	e = (2*a + 4*b - d + 34) % 7
	month = time.Month((d + e + 114) / 31)
	day = math.Floor(float64((d+e+114)%31 + 1))
	day = day + 13
	return time.Date(year, month, int(day), 0, 0, 0, 0, time.Local), nil
}
func OrthodoxByYear ( year int ) ( time . Time , error ) { if year < 326 { return time . Now ( ) , errors . New ( " " ) } var a , b , c , d , e int var month time . Month var day float64 a = year % 4 b = year % 7 c = year % 19 d = ( 19 * c + 15 ) % 30 e = ( 2 * a + 4 * b - d + 34 ) % 7 month = time . Month ( ( d + e + 114 ) / 31 ) day = math . Floor ( float64 ( ( d + e + 114 ) % 31 + 1 ) ) day = day + 13 return time . Date ( year , month , int ( day ) , 0 , 0 , 0 , 0 , time . Local ) , nil }
OrthodoxByYear returns time.Time for midnight on Orthodox Easter of a given year
use Meeus Julian algorithm and return time based on Gregorian calendar
OrthodoxByYear returns time . Time for midnight on Orthodox Easter of a given year use Meeus Julian algorithm and return time based on Gregorian calendar