prayer-times
prayer-times copied to clipboard
C# library to calculate Muslim prayer times
CalculationMethods.Custom can be used, but the values for this are hard-coded and the same as the Muslim World League, making it useless. Additional properties should be used to allow any...
try this test.. PrayerTimesCalculator calc = new PrayerTimesCalculator(53.4794892, -2.2451148); calc.CalculationMethod = CalculationMethods.MWL; calc.AsrJurusticMethod = AsrJuristicMethods.Shafii; var times = calc.GetPrayerTimes(new DateTime(2020, 5, 14), 1); it will return NaN for FAJR time.
This is not real Muslim times. The times are not correct.
- Set the custom angle when method is Custom - Get the angle for Fajr and Isha given Fajr time or Isha time
Asalamu alaikum wa rahmatullahi wa barakatu akhi, The line : if (this.HighLatitudeAdjustmentMethod == HighLatitudeAdjustmentMethods.AngleBased) return 1 / 60 * angle; Should be : if (this.HighLatitudeAdjustmentMethod == HighLatitudeAdjustmentMethods.AngleBased) return 1d /...
Salam aleykum Please check the "EffectiveTimeZone()" in "PrayerTimesCalculator" it should be like that ``` private int EffectiveTimeZone(DateTimeOffset date, int? timeZone) { if (timeZone == null) timeZone = date.Offset.Hours; int dstOffset...