Imagine it's 5 a.m. Your prayer app says Fajr is at 5:08. You walk to the masjid, and the jamaat starts at 5:30.
"Was the app wrong?"
Not really. It answered a different question.
Every prayer has two clocks. One is the sky: the moment the prayer's time begins. The other is your masjid: the moment the jamaat starts. Most apps show you the first and let you assume the second.
When we built Salaah times in Paigham, I wanted the app to always know which clock it is showing, and to tell you. This post walks through how it decides, one step at a time.
Grab a cup of chai. There's a little Kotlin, and it's short! ☕
The Two Clocks 🕰️
One clock is maths. The other is a decision.
The sky's clock is maths. Give it a place and a date, and it can tell you when Fajr begins anywhere in the world.
The masjid's clock is a decision. The imam and the committee pick the jamaat time, usually a little after the prayer begins, and round it to something people can remember.…