batoulapps / adhan-js

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

[suggestion]: Add 'Imsak' Timings #137

Closed AyahBot-Dev closed 1 year ago

sooluh commented 1 year ago

Looks like Imsak was taken 10 minutes before Fajr time? I do it like this:

// ...

const imsak = new Date(prayerTimes.fajr) // copy date object
imsak.setMinutes(imsak.getMinutes() - 10)
AyahBot-Dev commented 1 year ago

Thank you for reminding me on this. Also, maybe we need to add imsak to adjustments.

AyahBot-Dev commented 1 year ago

@sgtsquiggs Sorry for pinging, needed to ask if this can be on adhan-js roadmap

sgtsquiggs commented 1 year ago

Hi,

This isn't something we add to our adhan libraries - since Ismak is not a unique calculation and just an offset from Fajr, we expect app/site developers to implement this themselves.