Comments (6)
There is already a similar function:
src/calculation_parameters.c:59
calculation_parameters_t getParameters(calculation_method calculation_method1);
Full body:
calculation_parameters_t getParameters(calculation_method calculation_method1){
calculation_method default_method = OTHER;
switch(calculation_method1){
case MUSLIM_WORLD_LEAGUE:
return new_calculation_parameters3(18.0, 17.0, calculation_method1);
case EGYPTIAN:
return new_calculation_parameters3(20.0, 18.0, calculation_method1);
case KARACHI:
return new_calculation_parameters3(18.0, 18.0, calculation_method1);
case UMM_AL_QURA:
return new_calculation_parameters4(18.5, 90, calculation_method1);
case GULF:
return new_calculation_parameters4(19.5, 90, calculation_method1);
case MOON_SIGHTING_COMMITTEE:
return new_calculation_parameters3(18.0, 18.0, calculation_method1);
case NORTH_AMERICA:
return new_calculation_parameters3(15.0, 15.0, calculation_method1);
case KUWAIT:
return new_calculation_parameters3(18.0, 17.5, calculation_method1);
case QATAR:
return new_calculation_parameters4(18.0, 90, calculation_method1);
case OTHER:
return new_calculation_parameters3(0, 0, calculation_method1);
default:
return new_calculation_parameters3(0, 0, default_method);
}
Is this ok @Cyrillius ?
from adhan.
The implementation respect this guidance. But I still have a problem with the result (already discussed via e-mail) .
here is the problem:
from adhan.
Je pense qu'il y a un paramètre différent avec Muslim pro.
Ce code:
coordinates_t coordinates = {48.853409, 2.348800};
calculation_method method = OTHER;
calculation_parameters_t calculation_parameters = new_calculation_parameters(12.0, 12.0);
calculation_parameters.highLatitudeRule = TWILIGHT_ANGLE;
time_t calculation_time = resolve_time_2(2017, 11, 5);
prayer_times_t prayer_times = new_prayer_times2(&coordinates, calculation_time, &calculation_parameters);
Renvoie les bons horaires:
Date Fajr Sunrise Dhuhr Asr Maghrib Ishaa
11/05/17 05:33AM 06:44AM 11:35AM 01:58PM 04:24PM 05:35PM
Ce qui correspond aux résultat de muslim pro.
Mais si je change le madhab l'horaire de l'Asr change:
coordinates_t coordinates = {48.853409, 2.348800};
calculation_method method = OTHER;
calculation_parameters_t calculation_parameters = new_calculation_parameters(12.0, 12.0);
calculation_parameters.highLatitudeRule = TWILIGHT_ANGLE;
calculation_parameters.madhab = HANAFI;
time_t calculation_time = resolve_time_2(2017, 11, 5);
prayer_times_t prayer_times = new_prayer_times2(&coordinates, calculation_time, &calculation_parameters);
Je trouve exactement comme vous:
Date Fajr Sunrise Dhuhr Asr Maghrib Ishaa
11/05/17 05:33AM 06:44AM 11:35AM 02:37PM 04:24PM 05:35PM
Pourriez vous reteser ?
from adhan.
Oui je fais le test lundi et je vous tiens au courant. Si on utilise l'application payante que je crois que vous possédez le même problème persiste? Ca vient peut-être de Muslim Pro ..
from adhan.
Alors j'ai fait le test et effectivement lorsque le madhab n'est pas configuré à Hanafi j'ai partout quelques minutes de différence. Avez-vous pu tester avec l'application payantede iphone? En tout cas avec ce site le problème persiste: https://www.islamicfinder.org/prayer-times/
Je suppose donc que c'est plutôt un problème de la librairie des prières avec le madhab
from adhan.
J'ai testé avec islamicfinder et c'est le mêm résultat:
from adhan.
Related Issues (12)
- [Compilation] left-hand comma expression warnings when compiling HOT 5
- [Compilation] End of include ifdef misplaced in data_components.h
- timegm function only available on Linux HOT 4
- Wrong usage of inline
- data_components.h include twice in data_components.c
- use of the memory in a embedded system HOT 2
- M_PI is not defined
- time(0) can't be used
- How to get the angle of Qibla from the library? HOT 3
- I can't compile HOT 8
- Prayer Times Tests Fail on Windows MSYS2 and MinGW HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adhan.