batoulapps / adhan-js

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

About Sunset Time #33

Closed MS-Jahan closed 3 years ago

MS-Jahan commented 3 years ago

How to get sunset time?

z3bi commented 3 years ago

The library really only provides an interface for Maghrib prayer which based on the calculation method can be slightly after sunset. However you could calculate prayer times using the method of other adhan.CalculationMethod.Other() and then maghrib time will be equivalent to sunset time.

MS-Jahan commented 3 years ago

Okay, I was wanting to show end time for Asr prayer. Generally, Asr time is ended at the sunset time, then some time for sunset and then the Maghrib starts.

z3bi commented 3 years ago

@MS-Jahan it's a good general rule that the end time for Asr should be about 10 minutes before Maghrib time.

MS-Jahan commented 3 years ago

@MS-Jahan it's a good general rule that the end time for Asr should be about 10 minutes before Maghrib time.

Thank you so much. Closing this issue.