batoulapps / adhan-swift

High precision Islamic prayer time library for Swift
MIT License
185 stars 46 forks source link

Finding exact prayer times #81

Closed imthath-m closed 1 year ago

imthath-m commented 1 year ago

What is the reason for calculating the prayer time for the next day? (as you can see here).

I do not have expertise with prayer times, but I am just curious as I am building my prayer times app on top of Adhan. Can you also provide reference for using the next day for calculations?

z3bi commented 1 year ago

That specific request is made to get the length of the night (sunset of the current day to sunrise of the next day) to use for the High Latitude Rule. This is where the latitude doesn't allow for a true Isha and Fajr calculation and instead we use the length of the night to approximate it.