abodehq / pray-times Goto Github PK
View Code? Open in Web Editor NEWWelcome to Pray Times, an Islamic project aimed at providing an open-source library for calculating Muslim prayers times.
Welcome to Pray Times, an Islamic project aimed at providing an open-source library for calculating Muslim prayers times.
Im using Javascript .. The times of Fajr and Isha are wrong ..
Tried too many different coordinates but is the same everywhere
That was so helpful :)
I have used Objective C version to get prayer times according to a certain location, date and timeZone using this method:
-(NSMutableArray_)getDatePrayerTimes:(int)year andMonth:(int)month andDay:(int)day andLatitude:(double)latitude andLongitude:(double)longitude andtimeZone:(double)tZone; as follows:
PrayTime * pt=[PrayTime new];
double timeZone=[pt getTimeZone];
NSMutableArray * prayerTimes=[pt getDatePrayerTimes:2014 andMonth:01 andDay:26 andLatitude:30.056610400000000000 andLongitude:31.330107600000020000 andtimeZone:timeZone];
NSLog(@"PrayerTimes");
for (NSString_ prayTime in prayerTimes) {
NSLog(@"%@",prayTime);
}
and the result was as follows:
2014-01-26 14:28:07.862 testing[1492:70b] PrayerTimes
2014-01-26 14:28:07.862 testing[1492:70b] 05:35
2014-01-26 14:28:07.863 testing[1492:70b] 06:48
2014-01-26 14:28:07.863 testing[1492:70b] 12:07
2014-01-26 14:28:07.864 testing[1492:70b] 15:06
2014-01-26 14:28:07.865 testing[1492:70b] 17:26
2014-01-26 14:28:07.865 testing[1492:70b] 17:42
2014-01-26 14:28:07.866 testing[1492:70b] 18:30
but this resultant prayer times isn't correct according to this page:
http://www.islamicfinder.org/cityPrayerNew.php?country=egypt&lang=arabic
also this page
http://www.egynews.net/wps/portal/prayertimes/today
the previous pages gets the prayer times for the same location, date and time zone , i don't know why this happens! is there's a bug in the method or certain something must be made to get the times correctly? thanks in advance
prayTimes.getTimes(
new Date(),
[latitude, longitude],
// 0,
// "auto",
// "24h"
)
or
prayTimes.getTimes(
new Date(),
[latitude, longitude],
5,
// "auto",
// "24h"
)
If I add 0 then the timings are closer to actual ones. like this
prayTimes.getTimes(
new Date(),
[latitude, longitude],
0,
// "auto",
// "24h"
)
Salam ,
i'm trying to use the C# code and the time is incorrect for Fajr and Ishaa , i try to get values like this ,
Correcte Values
the angle used here is 12° so i wanted to know how the change the angle in the code
Thank you .
c# code not correct define pray time
how can i use this in android mobile? may i only need to use java file and need to call methods
how can i use this in android mobile? may i only need to use java file and need to call methods
All pray depend on angle of sun except Asr pray you can use Astral module in python
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.