Prayer times
prayer_timesCalculates Islamic prayer times, Hijri dates, and the next prayer countdown for any city or coordinates, returning daily or monthly timetables with configurable methods and time zones.
Instructions
Islamic prayer times (Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha) for any coordinates + IANA time zone, or a known city, for one day, several days or a whole month, plus the Hijri (Umm al-Qura) date and the next prayer with a countdown. Same astronomy as the website (adhan.js): 13 methods (Jordan Awqaf, MWL, Umm al-Qura, Egyptian, ISNA, Karachi, Dubai, Kuwait, Qatar, Turkey, Singapore, Tehran, Moonsighting), Shafi'i or Hanafi Asr, and the recommended high-latitude rule beyond 48° (overridable). Times are local HH:MM (24 h) in the given zone, plus UTC ISO. Coordinates are rounded to 4 decimals like the site. Web version: https://s3eidat.github.io/prayer-times/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asr | No | Asr school: "shafi" (standard: Shafi'i, Maliki, Hanbali) or "hanafi". Default shafi (hanafi for Karachi-method cities). | |
| now | No | Reference instant (ISO 8601) for "today" and the next prayer. Default: the current time. | |
| city | No | A known city (sets coordinates, time zone and its usual method): amman, irbid, zarqa, aqaba, mecca, medina, riyadh, jeddah, jerusalem, gaza, damascus, beirut, baghdad, cairo, alexandria, dubai, abudhabi, doha, kuwait, manama, muscat, istanbul, casablanca, tunis, algiers, khartoum, karachi, lahore, dhaka, delhi, kualalumpur, jakarta, tehran, london, paris, berlin, newyork, chicago, toronto, losangeles, sydney. | |
| date | No | First day, YYYY-MM-DD in the place's calendar. Default: today there. | |
| days | No | How many consecutive days to return. | |
| month | No | Or a whole month timetable, YYYY-MM (overrides date/days). | |
| method | No | Calculation method. Default: the city's usual method, else "mwl". | |
| latitude | No | Latitude in degrees (−90..90). Use with longitude and timezone. | |
| timezone | No | IANA time zone of the place, e.g. "Asia/Amman" (required with coordinates; overrides the city's). | |
| longitude | No | Longitude in degrees (−180..180). | |
| highLatitudeRule | No | "auto" = website behaviour (recommended rule when |latitude| > 48°). | auto |