Man... I have had such a difficult time with calculating the date for Easter, but I finally have a model that is correct for the rest of this century. It would have been easier to just copy-paste, true, but I just couldn't let it go until I solved it.

Let me know if you're interested in the code (it's in PHP, currently).

#askNostr #Catholic #PHP #Easter

Reply to this note

Please Login to reply.

Discussion

`shell_exec("cal -e")`

Hmm apparently it has to be ncal.

I just discovered the `easter_date()` PHP function 🤦‍♂️

How did it not come up in my searches?

It's not all for naught, though, because mine is accurate for the rest of the century, but `easter_date()` is not defined for years after 1937 on 32-bit machines.

nostr:nevent1qqs080eg5f0gnhq9vvpal6ad0g2qnyt6yl0lgzr092feaqrnxttz0kspz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsygy6ftx7h9u9vh38fyxu5ewg860k2az74mqangzqtffdrxxpfzv38vpsgqqqqqqsvr57xa