Last commit for v1/csharp/sample.cs: 1c500fff7f21d1993f205d3e36dc17ee56efdf24

JavaScript ver 2.0 uploaded

Hamid [2010-10-29 05:14:09]
JavaScript ver 2.0 uploaded

// Pray Times Example
// By: Jandost Khoso

class Program
{
    static void Main ( string [ ] args )
    {
        PrayerTime p = new PrayTime();
        double lo = 25;
        double la = 55;
        int y = 0 , m = 0 , d = 0 , tz = 0;

        DateTime cc = DateTime.Now;
        y = cc.Year;
        m = cc.Month;
        d = cc.Day;
        tz = TimeZone.CurrentTimeZone.GetUtcOffset(new DateTime (y,m,d)).Hours;
        String [] s ;

        p.setCalcMethod ( 2 );
        p . setAsrMethod ( 0 );
        s = p . getDatePrayerTimes ( y , m , d , lo , la , tz );
        for(int i = 0 ; i < s.Length ; ++i )
        {
            Console . WriteLine ( s [ i ] );
        }
    }
}
ViewGit