batoulapps / adhan-js

High precision Islamic prayer time library for JavaScript
MIT License
387 stars 86 forks source link

Prayer Ending Times #127

Closed Zalanshah64 closed 2 years ago

Zalanshah64 commented 2 years ago

My understanding of this may be flawed, so please correct me if so.

Generally, you only have so much time to pray certain prayers (Maghrib being the main one). While this library does feature support for seeing the start of prayer times, I haven't been able to find anything on the ends of prayer times. Is there a way to calculate this?

z3bi commented 2 years ago

The library includes sunrise time in order to know when Fajr ends.

According to these two Hadith https://sunnah.com/bukhari:579 and https://sunnah.com/muslim:612a the ending times can be seen as follows: