Here is a small program that calculates the date of Easter for any given year.
I use the same code that's on my calendar maker. Since it uses the Gregorian Calendar, it starts at 1753 A.D. This is for the Non-Orthodox Easter date.
'What Is The Date For Easter (Non-Orthodox)
'By SierraKen
'Equation Code found online.
_Title "What Is The Date For Easter" start:
start2:
Input " Year (Higher Than 1753 A.D.): ", PQA
If PQA
< 1753 Then Print:
Print " Your year is too long ago for the Gregorian Calendar, try again.":
GoTo start2:
If pqm
= 3 Then month$
= "March" If pqm
= 4 Then month$
= "April"
Print " Easter Date: " + month$
+ " " + day$
+ ", " + year$
Input " More (Y/N):", yn$
'Find the right date for Easter.
PAQUES:
pqm
= Int(PQA
/ 100): PQ1
= PQA
- pqm
* 100: PQJ
= Int(((PQA
/ 19 - Int(PQA
/ 19)) + .001) * 19)PQ2
= Int(pqm
/ 4): PQ3
= Int(((pqm
/ 4) - PQ2
+ .001) * 4): PQ4
= Int((8 + pqm
) / 25)PQ5
= Int((1 + pqm
- PQ4
+ .001) / 3): PQ4
= (15 + 19 * PQJ
+ pqm
- PQ2
- PQ5
+ .001) / 30: PQ4
= PQ4
- Int(PQ4
)PQ4
= Int(PQ4
* 30): PQ5
= Int(PQ1
/ 4): PQ6
= ((PQ1
/ 4) - PQ5
) * 4PQ7
= (32 + 2 * PQ3
+ 2 * PQ5
- PQ4
- PQ6
+ .001) / 7: PQ7
= (PQ7
- Int(PQ7
)) * 7: PQ6
= (PQJ
+ 11 * PQ4
+ 22 * PQ7
) / 451PQ6
= Int(PQ6
): PQ2
= (114 + PQ4
+ PQ7
- 7 * PQ6
) / 31: pqm
= Int(PQ2
): PQJ
= Int((PQ2
- pqm
+ .001) * 31 + 1)