RunKit + npm: adhan

node v10.24.1
version: master
endpointsharetweet
require("date-fns") const {utcToZonedTime } = require('date-fns-tz') var adhan = require("adhan") var date = new Date() var coords = new adhan.Coordinates(33.67802671754685, 73.04348942418297) var params = adhan.CalculationMethod.Karachi() var prayerTimes = new adhan.PrayerTimes(coords, date, params) utcToZonedTime(prayerTimes.fajr, "Asia/Karachi")
Created from: https://npm.runkit.com/adhan
utcToZonedTime(prayerTimes.sunrise, "Asia/Karachi")
utcToZonedTime(prayerTimes.dhuhr, "Asia/Karachi")
utcToZonedTime(prayerTimes.asr, "Asia/Karachi")
utcToZonedTime(prayerTimes.maghrib, "Asia/Karachi")
utcToZonedTime(prayerTimes.isha, "Asia/Karachi")
Loading…

no comments

    sign in to comment