Giter VIP home page Giter VIP logo

prayertimesswift's Introduction

PrayerTimesSwift

Version License Platform

Prayer Times provides a set of handy functions to calculate prayer times for any location around the world, based on a variety of calculation methods currently used in Muslim communities.

You can report any issue on issues page. Note: If you speak Arabic, you can submit issues with Arabic language and I will check them. :)

Requirements

Installation

Just add this line to your Podfile

pod 'PrayerTimesSwift'

Now run pod install

Create an PrayerTime

You will need to create a new instance of PrayerTime. Once the instance are configured, you can call getPrayerTimes().

let myPrayerTime = PrayerTimes(caculationMethod: .makkah, asrJuristic: .shafii, adjustHighLats: .none, timeFormat: .time12)
let prayerTimes = myPrayerTime.getPrayerTimes(date: .current, latitude: 24.7136, longitude: 46.6753, tZone: 3) 

Configurations

  • TimeFormat To change the time format to:
    • time24 24-hour format
    • time12 12-hour format
    • time12NS 12-hour format with no suffix
    • floating floating point number
myPrayerTime.timeFormat = .time24
  • Caculationmethod To change the Calculation Methods.
    • karachi University of Islamic Sciences, Karachi
    • isna Islamic Society of North America (ISNA)
    • mwl Muslim World League (MWL)
    • makkah Umm al-Qura, Makkah
    • egypt Egyptian General Authority of Survey
    • jafari Ithna Ashari
    • tehran Institute of Geophysics, University of Tehran
    • custom Custom Setting
 myPrayerTime.caculationMethod = .makkah
  • AsrJuristic To change Juristic Method for Asr
    • shafii Shafii (standard)
    • hanafi Hanafi
myPrayerTime.asrJuristic = .shafii
  • AdjustHighLats Adjusting Methods for Higher Latitudes
    • none No adjustment
    • midNight middle of night
    • oneSeventh 1/7th of night
    • angleBased angle/60th of night
myPrayerTime.adjustHighLats = .none
  • tuneTimes Tune timings for adjustments
        myPrayerTime.tuneTimes([0,0,0,0,0,0,0])

Author

Abdullah Alhazmy

Credits

Praytimes

License

PrayerTimesSwift is available under the MIT license. See the LICENSE file for more info.

prayertimesswift's People

Contributors

alhazmy13 avatar cs4alhaider avatar salehaldhobaie avatar

Watchers

James Cloos avatar

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.