41

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.

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
hkhalifa
  • 1,245
  • 1
  • 11
  • 6

5 Answers5

8

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 )

Antoine Claval
  • 4,923
  • 7
  • 40
  • 68
5

You can make use of the PrayTimes library.

http://praytimes.org/code/

It's originally written in JavaScript, but there are ports to other languages as well.

Maher Gamal
  • 96
  • 2
  • 3
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.

omer yavuz
  • 78
  • 5
  • 1
    Use 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
3

I think Ubuntu Muslim Edition uses this type of features in a calendar, maybe you could search around there

Valentin Rocher
  • 11,667
  • 45
  • 59
0

I think that is come out port of ITL for Java on sourceforge.net

Bo Persson
  • 90,663
  • 31
  • 146
  • 203
adopilot
  • 4,340
  • 12
  • 65
  • 92