batoulapps / adhan-js

High precision Islamic prayer time library for JavaScript
MIT License
368 stars 81 forks source link

Prayer Ending Times #127

Closed Zalanshah64 closed 1 year ago

Zalanshah64 commented 1 year 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 1 year 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: