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

ITL library - Wrong calculation for Asr for Malaysia



Assalamualaikum,

I just stumbled on this library. However when trying the demo app, the
calculation of the Asr prayer for Kuala Lumpur (Latitude:  3.1667,
Longitude: 101.7000) was off i.e. earlier by about 30 minutes. I was
using method 1 (Egyptian General Authority of Survey) and Shafiee way of
calculating the prayer time.

Here are the relevant amendments to the paryer-demo.c file:

/* fill the Date structure */
    date.day = 26; // (26 August 2004)
    date.month = 8;
    date.year = 2004;
    /* fill the location info. structure */
    loc.degreeLat = 3.1667; 
    loc.degreeLong = 101.7000 ;
    loc.gmtDiff = 8; // GMT+8
    loc.dst = 0;
    loc.seaLevel = 0;
    loc.pressure = 1010;
    loc.temperature= 10;

  
    /* auto fill the method structure. Have a look at prayer.h for a
     * list of supported methods */
    getMethod(1, &conf); //Egyptian General Authority of Survey
    conf.round = 0;
 
All the other times calculated are OK, just the Asr prayer. ITL calculated
as 15:58 whereas the correct time is closer to 16:30.  You can also check
using www.islamicfinder.org prayer calculator to confirm.

Can somebody check where have made the mistake? Also kprayertime using
this library also calculated it wrongly.

Wassalam.

Mansuriatus Shahrir Amir
Kuala Lumpur


----------------------------------------------------------------
This e-mail has been sent via JARING webmail at http://www.jaring.my