Comments (3)
Is there a way to get the calculation method for a specific country?
Yes if you know that country capital latitude and longitude you can easily filter it.
from prayer_time.
Can you explain it with a small example?
from prayer_time.
Can you explain it with a small example?
The example is already given in readme.md
.
main.dart
import 'package:PrayerTime/PrayerTime.dart';
void main() {
/*
// method
0; // Jafari
1; // University of Islamic Sciences, Karachi
2; // Islamic Society of North America (ISNA)
3; // Muslim World League (MWL)
4; // Umm al-Qura, Makkah
5; // Egyptian General Authority of Survey
6; // Custom Setting
7; // Institute of Geophysics, University of Tehran
*/
PrayTime prayerTime = PrayTime(method: 1);
// date {year, mday, mon}, latitude, longitude, timezone
var times = prayerTime.getPrayerTimes({
"year": 2021,
"mday": 19,
"mon": 4,
}, 31.170406299999996, 72.7097161, 5);
// [Fajr, Sunrise, Dhuhr, Asr, Sunset, Maghrib, Isha]
print(times);
}
Here in the function prayerTime.getPrayerTimes
the second and third arguments are latitude
and longitude
.
Hope It will helpful.
from prayer_time.
Related Issues (4)
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 prayer_time.