Code Monkey home page Code Monkey logo

Comments (3)

lablnet avatar lablnet commented on August 25, 2024

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.

malekkhasawneh avatar malekkhasawneh commented on August 25, 2024

Can you explain it with a small example?

from prayer_time.

lablnet avatar lablnet commented on August 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.