0
$\begingroup$

Is there an official reference algorithm for calculating the Ekadashi days?

I found the textual description of Ekadashi calculation on wikipedia but can't really make sense of it in order to write the code.

I already have the (java) code for calculating the new/full moon phases, and originally assumed that Ekadashi would be as easy as appending 11 days to the time of new and full moon but apparently this approach is not providing correct results.

Update:

Based on James's answer the answer is 11 lunar days and 26 lunar days after new moon (not gregorian days).

The required conditional adjustments are described in chapter 1.4 of Vaisnava Events Calculation which don't match the ones described in the wikipedia article.

$\endgroup$
1
  • $\begingroup$ It's tricky! Because Ekadashi also depends on the exact time of sunrise, you need to take location into account. $\endgroup$
    – PM 2Ring
    Feb 16 '19 at 17:24
1
$\begingroup$

It is not clear that it can be calculated in a simple way

The length of the lunar month varies between 29.3 and 29.8 days, due to perturbations from the sun. Since ekadashi is based on the actual astronomical moon, you would need to know the length of the current synodic month in order to work out when ekadashi is. You can predict the motion of the moon very accurately, but the calculation is beyond this answer.

However on average, each lunar month is 29.53 days, so ekadashi is the day which is 259.86 hours and 614.22 hours after each new moon. The calculation is
24 hours/day * 11/30 * 29.53 days

And New moon last occurred on 4th Feb at 21.03, you can add 29.53 days to find the next new moon etc.

The irregular motion of the moon is why the Christians choose to use an "average moon" and an "average sun" for their calculation of Easter.

$\endgroup$
1
  • $\begingroup$ thank you so much! so then new moon + ~10.8 days would be the 'astronomical ekadashi', right? wikipedia says: a day which is not touched or ruined by the tenth tithi or lunar day. The cut-off is 96 minutes before sunrise. If 10th day completes 96 minutes before sunrise, then that day is celebrated as Ekādaśī. If incomplete before sunrise, but continues to be Dashimi during that day, then the Ekādaśī fast is performed on the following day. So I am assuming that astronomical ekadashi would still need to be adjusted according to those rules, no? $\endgroup$
    – ccpizza
    Feb 16 '19 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.