Forum Moderators: coopster

Message Too Old, No Replies

delving into different calendars. advice?

gregorian, hebrew, ecclesiatic, etc

         

httpwebwitch

7:57 pm on Jun 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm getting into a situation where I need to do date calculations in various non-secular calendars.

For instance, my PHP application needs to calculate an integer, which expresses "how many days until Purim".

or it may do calculations with a date object, which defines "when is the next date of Easter".

I have a feeling these lunar-based calendars and moveable feasts are going to be a bigger challenge than I'm prepared for.

Any advice before I get started?

RonPK

9:25 pm on Jun 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[php.net...] may be of use. PHP even turns out have a function called easter_date([year]). Christian Easter, probably; which offcourse differs from Orthodox and Jewish Easter :)

httpwebwitch

7:14 pm on Jun 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think the simplest option will be to get dates for the next 30 years and keep them in a table. I'm not trying to calculate Easter in the year 1200 BCE, I just need to know when it'll fall next year, then the year after that, etc.

g1smd

8:03 pm on Jun 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



"The Calendar FAQ" is probably the most comprehensive document on the subject. Google it.