[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: itl library PrayerTimes



On Thu, Oct 04, 2007 at 08:35:57PM +0300, Mohammed Sameer wrote:
> On Thu, Oct 04, 2007 at 01:48:05AM +0200, Ahmed Toulan wrote:
> >  Hi Everyone,
> >  I am trying to create a GUI for the prayer times library. So I got the
> >  code from SVN and tried it out using the demo_prayer.c program. Here
> >  is the information I entered for Cairo,Egypt.
> >  //////////////////
> >  /* fill the Date structure */
> >  date.day = 4;
> >  date.month = 10;
> >  date.year = 2007;
> >  /* fill the location info. structure */
> >  loc.degreeLat = 30.05;
> >  loc.degreeLong = 31.25;
> >  //////////////////
> >  And I got this output:
> >  4:20:42 5:49:41 11:43:50 15:06:22 17:37:32 18:57:40
> >  While I got this from [1]www.ahram.org.eg website
> >  4:23 5:50 11:44 3:06 5:37 6:54
> >  I noticed (over several days) that there is always 2-3 minutes
> >  difference in Fajr and Ishaa, between the 2 readings.
> >  What I want to know if this is acceptable or if it's a bug in the
> >  library?
> >  Note: They are both using the "Egyptian General Authority of Survey"
> >  method
> 
> I don't trust ahram.org.eg but seems you are right. Both are not similar
> which makes me wonder...
> 
> http://www.islamicfinder.org/prayerDetail.php?country=egypt&city=Cairo&email=&lang=arabic&start=0&home=2007-10-4&aversion=&athan=
> 
> 
> I'm not the one who coded the library or the one maintaining it. Will try to do some
> debugging but no promise.
> 
> P.S A systray applet already exists. 2 actually:
> http://cvs.arabeyes.org/viewcvs/projects/itl/programs/
> 


OK. I'm puzzled:

Check this page:
http://www.islamicfinder.org/HelpPrayCalArabic.html
Notice that for the Egyptian way, it should be (prayer.c lines 783 and 784)
19.5 for Fajr
17.5 for Isha

Consider that Cairo:
Longitude: 31.25
Latitude: 30.05

Now what I get is almost similar to the one you can find online:
   4:23:01    5:49:48   11:43:50   15:06:22   17:37:26   18:55:20

And no. I am not sure my discovery is correct although it leads to identical results
and I don't dare to modify the library :-|

Any other opinion ?

-- 
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F  280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org

Attachment: signature.asc
Description: Digital signature