Can anyone tell me where to find a Java library that does Muslim prayer time calculation based on the city? Maybe a web service? I would prefer a Java library.
-
10Sounds like a project you could undertake. – AlbertoPL May 11 '09 at 15:13
-
3I agree with AlbertoPL - it could be an interesting project! – Rob May 11 '09 at 15:22
-
@hkhalifa how u resolve your issue ? – Erum Feb 18 '15 at 04:08
-
https://stackoverflow.com/a/61891905/12478830 – MMG May 21 '20 at 14:06
5 Answers
http://www.javafr.com/codes/PRAYER-ALERT-SALA_40601.aspx
hello, it's not a library but a student project. But quite well executed.
Or : http://www.directionsmag.com/article.php?article_id=2956 A method to calcul prayer time with google map+local time ( in short : check where you are, check how far your are from the Makkah , apply the right formula )

- 4,923
- 7
- 40
- 68
You can make use of the PrayTimes library.
It's originally written in JavaScript, but there are ports to other languages as well.

- 96
- 2
- 3
Best is https://github.com/abodehq/Pray-Times for this question. It includes java, objective C,PHP, C#, javascript, python, c++ code implementation. It supports different methods and calculation is based gps position.Calculation Methods are Ithna Ashari,University of Islamic Sciences, Karachi, Islamic Society of North America (ISNA),Muslim World League (MWL),Umm al-Qura, Makkah,Egyptian General Authority of Survey,Institute of Geophysics, University of Tehran,Custom Setting. Juristic Methods are Shafii, Hanafi. Adjusting Methods for Higher Latitudes. Formats are 24-hour format/12-hour format/12-hour format with no suffix/floating point number.

- 78
- 5
-
1Use this library: http://praytimes.org/wiki/Prayer_Times_Calculation. Very well written. Code available in all popular programming languages – Asad Rao Mar 19 '19 at 13:53
I think Ubuntu Muslim Edition uses this type of features in a calendar, maybe you could search around there

- 11,667
- 45
- 59
-
I found this library http://www.arabeyes.org/project.php?proj=ITL but its in c++ , I think i will have to write one in Java – hkhalifa May 12 '09 at 10:28
-
I think that is come out port of ITL for Java on sourceforge.net

- 90,663
- 31
- 146
- 203

- 4,340
- 12
- 65
- 92