Skip to main content

Prayer times, part 6: the national standards

· 36 min read
Rizki Rakasiwi
Muslimtify maintainer

Muslimtify ships 21 calculation methods. Part 4 looked at seven of them through their Fajr and Isha angles. This part goes through the whole table, region by region, and looks at the things a national standard adds on top of the angles: minutes added after sunset, Isha set by the clock instead of the sky, precaution margins, rounding rules, and the corrections Muslimtify deliberately does not copy.

By the end, the code can print the complete timetable for any of the 21 standards, and it matches the production library in every cell.

This is part 6 of a series

Parts 1 to 5 built the five prayer times from the texts up. This part is about what each country does with them. Part 7, the last, covers the far north where the formula runs out, the clock, and the complete program tested against libmuslim for a whole year. The full series is under the prayer time calculation tag.

Three kinds of parameter​

Every method in Muslimtify is described by five numbers, and they are not all the same kind of thing.

The Fajr and Isha angles are observations. Someone stood outside and judged when the true dawn appeared or the twilight faded, and part 4 told that story.

The clock rules are conventions. Four authorities define Isha as a fixed number of minutes after Maghrib rather than by an angle, and two add a few minutes to Maghrib itself after sunset. Neither is an astronomical claim. They are decisions about how to publish a timetable that is simple and never early.

The precaution is fiqh. Kemenag adds two minutes to every prayer, Jordan adds five, and Kemenag's tables round every time up to the next whole minute. Part 1 traced this to the hadith "leave what makes you doubt".

astronomysunset17:45:28method offset+0 min17:45:28ihtiyat+2 min17:47:28round upnext minute17:48printedMaghrib17:48Kemenag, Jakarta, 17 October 2026. Only the first box is astronomy. The rest is the standard.
What a national standard adds on top of the formula. For Kemenag that is two minutes of precaution and rounding up. For Portugal the second box would add three minutes to Maghrib, and for Jordan the third box would add five.

The table, in the order libmuslim keeps it:

KeyAuthorityFajrIshaMaghrib offsetIhtiyat
mwlMuslim World League18°17°
makkahUmm al-Qura, Makkah18.5°90 min
isnaISNA, North America15°15°
egyptEgyptian General Authority of Survey19.5°17.5°
karachiUniversity of Islamic Sciences, Karachi18°18°
turkeyDiyanet, Turkey18°17°
singaporeMUIS, Singapore20°18°
jakimJAKIM, Malaysia20°18°
kemenagKemenag, Indonesia20°18°+2 min
franceUOIF, France12°12°
russiaSpiritual Administration of Muslims, Russia16°15°
dubaiGAIAE, Dubai18.2°18.2°
qatarMinistry of Awqaf, Qatar18°90 min
kuwaitMinistry of Awqaf, Kuwait18°17.5°
jordanMinistry of Awqaf, Jordan18°18°+5 min
gulfGulf region19.5°90 min
tunisiaMinistry of Religious Affairs, Tunisia18°18°
algeriaMinistry of Religious Affairs, Algeria18°17°
moroccoMinistry of Habous, Morocco19°17°
portugalComunidade Islamica de Lisboa18°77 min+3 min
moonsightingMoonsighting Committee18°18°+3 min

Asr is not in the table because it is not part of any method. It is the madhhab setting from part 5.

Region by region​

Indonesia, Malaysia and Singapore​

Kemenag, JAKIM and MUIS share the same angles, 20° for Fajr and 18° for Isha, which makes sense for three neighbours under the same humid equatorial sky. The 20° dawn criterion originates with Saadoeddin Djambek, the Indonesian falak scholar, and Kemenag has used it ever since.

It is also the most argued-over number in the table. In December 2020 Muhammadiyah's Tarjih council decided to move its own criterion to 18°, which makes Subuh about eight minutes later. Kemenag replied the same month that 20° stands, citing dawn observations by its own falak team at Labuan Bajo in 2018 and by Nahdlatul Ulama researchers at Banyuwangi. Indonesian academic studies since have reported observed values anywhere from 13° to 20° depending on site and technique. So an Indonesian reader may find two timetables on the same street that differ by eight minutes at Fajr, both produced by careful people.

What Kemenag adds on top: two minutes of ihtiyat on every prayer, and rounding up to the next whole minute. In Muslimtify's table JAKIM and MUIS carry no ihtiyat, so a Malaysian or Singaporean timetable from the same angles prints a minute or two earlier than Kemenag's.

The Arabian Peninsula​

Umm al-Qura is the official Saudi calendar. Fajr was 19° until December 2008 and 18.5° since. Isha is not an angle at all but 90 minutes after Maghrib, and in the official calendar that becomes 120 minutes during Ramadan. Muslimtify uses 90 all year, so during Ramadan its makkah Isha is half an hour before the printed Saudi one. That is intentional. The Ramadan rule is a calendar policy, not a change in the sky, and Muslimtify does not currently know which days are Ramadan.

Qatar (18°, 90 minutes) and the general Gulf method (19.5°, 90 minutes) follow the same clock-based Isha. Kuwait uses angles, 18° and 17.5°. Dubai's GAIAE uses 18.2° for both, a number precise enough to suggest it was fitted to something, and the official UAE tables also carry small per-prayer rounding offsets that Muslimtify does not apply.

Jordan is the other authority with a precaution margin, and it is a generous one: five minutes on every prayer. Note that it applies to the whole schedule. It is not a Maghrib-only offset like Portugal's.

Egypt, North Africa and the Levant​

The Egyptian General Authority of Survey publishes one of the oldest national standards, 19.5° for Fajr and 17.5° for Isha, and al-Azhar follows it. The 17.5° is tied to the disappearance of the red twilight. Egypt's Fajr angle is the deepest in the table after the three Southeast Asian authorities, which is why Egyptian Fajr in Jakarta comes out within a minute of Kemenag's.

Tunisia uses 18° and 18°. Algeria uses 18° and 17°. Morocco uses 19° and 17°, and the Ministry of Habous then adjusts the official times city by city by hand, which Muslimtify does not reproduce.

Turkey​

Diyanet uses 18° and 17°, the same angles as the Muslim World League. What makes Turkish timetables differ from a plain calculation is temkin, a precaution margin that Diyanet applies prayer by prayer. The margins have been revised several times since the 1980s, when the dawn angle was also changed from 19° to 18° and the margin on imsak was removed, and the exact minutes in force today are best read from the official Diyanet calendar. Muslimtify applies no temkin, so expect its turkey times to sit a few minutes off the printed Turkish ones.

South Asia​

The University of Islamic Sciences in Karachi uses 18° for both prayers. The 18° Isha follows the Hanafi position that the white twilight must also disappear, and readers in Pakistan, India and Bangladesh will usually pair this method with the Hanafi Asr from part 5. Both settings are independent in Muslimtify, so that pairing is a choice, not a default.

Europe, Russia and North America​

The Muslim World League's 18° and 17° is the closest thing to a worldwide default. It is what most apps fall back to when they do not know where you are, and it is used across much of Europe and East Asia.

ISNA's 15° and 15° has been the North American convention for decades. Around 2010 the Fiqh Council of North America discussed moving to 18°, and reports after that disagree about what was finally adopted, so many communities on the continent now use 18° or 17.5° while apps still label 15° as "ISNA". The Spiritual Administration of Muslims of Russia uses 16° and 15°, a shallower pair suited to a country where 18° is unreachable for much of the summer.

France's 12° and 12° is the shallowest in the table. At 18° there is no Fajr at all in France for weeks around midsummer, and the French federation (then UOIF, now Musulmans de France) chose 12° so that a timetable could be published at all. When and how it was adopted is not well documented.

Two methods add minutes to Maghrib. The Lisbon community uses 18° for Fajr, three minutes after sunset for Maghrib, and 77 minutes after that for Isha. The Moonsighting Committee uses 18° for both twilight prayers and the same three minutes on Maghrib. The committee's real method is more elaborate than that: it uses seasonal, latitude-dependent functions and several shafaq modes. Muslimtify keeps only the 18° baseline, so its moonsighting is an approximation of the committee's tables, not a reproduction.

What Muslimtify leaves out, on purpose​

Reading the sections above, you can list the things an official timetable may contain that the code in this series does not: Umm al-Qura's Ramadan interval, Diyanet's temkin, Dubai's rounding offsets, Morocco's per-city adjustments, the Moonsighting Committee's seasonal curves. The calculation methods page in the docs keeps the current list.

There is a principle behind leaving them out. Each method in Muslimtify is the authority's own published angles and rules, nothing more. Where an authority applies an adjustment that depends on the calendar, the city, or an unpublished table, copying a guess would mean attributing a ruling to that authority that it never issued in that form. When your mosque's printed table differs from Muslimtify by a fixed minute or two, the per-prayer offset in the configuration is the honest tool: you are matching your mosque, and the method stays what the authority said.

Why the angles cluster​

Fourteen of the twenty-one methods put Fajr within one degree of 18°. That is not a coincidence or copying. Eighteen degrees is the astronomers' end of twilight, the depth at which the sky is as dark as it gets, and the true dawn is the first light after that darkness, so every careful observer lands near it. The spread from 18° to 20° is the different skies of part 4. The methods that sit far from the cluster, ISNA at 15°, Russia at 16°, France at 12°, are the ones that chose a shallower angle for practical reasons at high latitudes.

11°12°13°14°15°16°17°18°19°20°21°11°12°13°14°15°16°17°18°19°Fajr angle below the horizonIsha angleMWL, Turkey, AlgeriaISNAEgyptKarachi, Jordan, Tunisia, MoonsightingSingapore, JAKIM, KemenagFranceRussiaDubaiKuwaitMoroccoIsha set by the clock instead of an angleQatar 90 min, Portugal 77 minMakkah 90 minGulf 90 minLarger dots are several authorities sharing the same pair of angles.
All 21 standards Muslimtify ships, placed by their two angles. Fourteen of them sit within one degree of 18° for Fajr. The outliers are decisions, not observations: ISNA and Russia at 15° to 16°, France at 12°, and the four Gulf and Portuguese authorities that define Isha by the clock instead of the sky.

Isha clusters the same way between 17° and 18°, with the red-or-white twilight question of part 1 deciding which side of 17.5° an authority falls on.

The code​

Add this to the file from part 5. It replaces the seven-method table from part 4 with all twenty-one, adds the Maghrib offset, and assembles the five prayers into one prayer_times function that applies the method's offsets and precaution. Rounding up happens when printing, as before.

METHODS = {
# key fajr isha isha interval maghrib offset ihtiyat (angles in degrees, the rest in minutes)
"mwl": dict(fajr=18.0, isha=17.0, interval=0, maghrib=0, ihtiyat=0),
"makkah": dict(fajr=18.5, isha=0.0, interval=90, maghrib=0, ihtiyat=0),
"isna": dict(fajr=15.0, isha=15.0, interval=0, maghrib=0, ihtiyat=0),
"egypt": dict(fajr=19.5, isha=17.5, interval=0, maghrib=0, ihtiyat=0),
"karachi": dict(fajr=18.0, isha=18.0, interval=0, maghrib=0, ihtiyat=0),
"turkey": dict(fajr=18.0, isha=17.0, interval=0, maghrib=0, ihtiyat=0),
"singapore": dict(fajr=20.0, isha=18.0, interval=0, maghrib=0, ihtiyat=0),
"jakim": dict(fajr=20.0, isha=18.0, interval=0, maghrib=0, ihtiyat=0),
"kemenag": dict(fajr=20.0, isha=18.0, interval=0, maghrib=0, ihtiyat=2),
"france": dict(fajr=12.0, isha=12.0, interval=0, maghrib=0, ihtiyat=0),
"russia": dict(fajr=16.0, isha=15.0, interval=0, maghrib=0, ihtiyat=0),
"dubai": dict(fajr=18.2, isha=18.2, interval=0, maghrib=0, ihtiyat=0),
"qatar": dict(fajr=18.0, isha=0.0, interval=90, maghrib=0, ihtiyat=0),
"kuwait": dict(fajr=18.0, isha=17.5, interval=0, maghrib=0, ihtiyat=0),
"jordan": dict(fajr=18.0, isha=18.0, interval=0, maghrib=0, ihtiyat=5),
"gulf": dict(fajr=19.5, isha=0.0, interval=90, maghrib=0, ihtiyat=0),
"tunisia": dict(fajr=18.0, isha=18.0, interval=0, maghrib=0, ihtiyat=0),
"algeria": dict(fajr=18.0, isha=17.0, interval=0, maghrib=0, ihtiyat=0),
"morocco": dict(fajr=19.0, isha=17.0, interval=0, maghrib=0, ihtiyat=0),
"portugal": dict(fajr=18.0, isha=0.0, interval=77, maghrib=3, ihtiyat=0),
"moonsighting": dict(fajr=18.0, isha=18.0, interval=0, maghrib=3, ihtiyat=0),
}

def prayer_times(year, month, day, latitude, longitude, timezone, method, shadow_factor=1):
"""The five prayer times as local clock hours, with the method's offsets and precaution applied."""
jd = julian_day(year, month, day)
sunset = sun_event(jd, latitude, longitude, timezone, SUNRISE_ALTITUDE, +1)
maghrib = None if sunset is None else sunset + method["maghrib"] / 60
if method["interval"]:
isha = None if maghrib is None else maghrib + method["interval"] / 60
else:
isha = sun_event(jd, latitude, longitude, timezone, -method["isha"], +1)
times = {
"fajr": sun_event(jd, latitude, longitude, timezone, -method["fajr"], -1),
"dhuhr": solar_noon(jd, longitude, timezone),
"asr": asr(jd, latitude, longitude, timezone, shadow_factor),
"maghrib": maghrib,
"isha": isha,
}
return {name: None if t is None else t + method["ihtiyat"] / 60 for name, t in times.items()}

if __name__ == "__main__":
print("method fajr dhuhr asr maghrib isha")
for key, method in METHODS.items():
t = prayer_times(2026, 10, 17, -6.2088, 106.8456, 7, method) # Jakarta, WIB
print(f"{key:<13} {hm(t['fajr'], round_up=True)} {hm(t['dhuhr'], round_up=True)} {hm(t['asr'], round_up=True)} "
f"{hm(t['maghrib'], round_up=True)} {hm(t['isha'], round_up=True)}")

The order of operations inside prayer_times matters for two methods. Portugal's Isha is 77 minutes after Maghrib, and Maghrib is already 3 minutes after sunset, so the interval is added to the offset time, not to the raw sunset. And the precaution is added last, to every prayer, after offsets and intervals, which is why Jordan's Isha moves by five minutes even though its angle is the same as Karachi's.

Check your work​

Run it. For Jakarta on 17 October 2026 you should see:

method fajr dhuhr asr maghrib isha
mwl 04:21 11:39 14:46 17:46 18:52
makkah 04:19 11:39 14:46 17:46 19:16
isna 04:33 11:39 14:46 17:46 18:44
egypt 04:15 11:39 14:46 17:46 18:54
karachi 04:21 11:39 14:46 17:46 18:56
turkey 04:21 11:39 14:46 17:46 18:52
singapore 04:13 11:39 14:46 17:46 18:56
jakim 04:13 11:39 14:46 17:46 18:56
kemenag 04:15 11:41 14:48 17:48 18:58
france 04:46 11:39 14:46 17:46 18:32
russia 04:29 11:39 14:46 17:46 18:44
dubai 04:20 11:39 14:46 17:46 18:57
qatar 04:21 11:39 14:46 17:46 19:16
kuwait 04:21 11:39 14:46 17:46 18:54
jordan 04:26 11:44 14:51 17:51 19:01
gulf 04:15 11:39 14:46 17:46 19:16
tunisia 04:21 11:39 14:46 17:46 18:56
algeria 04:21 11:39 14:46 17:46 18:52
morocco 04:17 11:39 14:46 17:46 18:52
portugal 04:21 11:39 14:46 17:49 19:06
moonsighting 04:21 11:39 14:46 17:49 18:56

Every cell of this table is what libmuslim's calculate_prayer_times returns for the same inputs, which means it is what Muslimtify shows when you switch methods with muslimtify method.

A few things to notice while reading it. Dhuhr, Asr and Maghrib are the same in every row except three, because no method touches them except through precaution and the Maghrib offset: Kemenag and Jordan shift all of them, Portugal and Moonsighting shift Maghrib. Singapore and JAKIM print Fajr two minutes before Kemenag from the same angle, which is exactly the ihtiyat. And Makkah, Qatar and Gulf all land on 19:16 for Isha despite different Fajr angles, because 90 minutes after the same sunset is the same time.

Then change the city. Jakarta is almost the gentlest place on earth for this table, because near the equator the angle differences compress. Put in your own coordinates, or Istanbul's (41.0082, 28.9784, UTC+3), and watch the Fajr column spread out.

What to carry into part 7​

A calculation method is the authority's published angles plus its clock rules plus its precaution, and nothing else. The angles cluster near 18° because that is where twilight ends, the clock rules exist to make a timetable simple and safe, and the precaution is a hadith applied with a stopwatch. The things Muslimtify leaves out are the things an authority never published as a rule.

One column of the table hides a problem. Run the program for Oslo on 21 June and the Fajr and Isha cells come back empty, because the sun never gets 18° below the horizon there in midsummer. Part 7 is about what a timetable should say when the sky gives no answer, and about the two authorities in the table, the Muslim World League and the Moonsighting Committee, that have actually published one.