All Projects → ashikahmad → PrayerTimes-Swift

ashikahmad / PrayerTimes-Swift

Licence: other
Islamic Prayer (salah) Time calculation written in swift.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to PrayerTimes-Swift

pyIslam
pyIslam, a Python library to calculate prayer times, hijri date, qiblah direction and more
Stars: ✭ 68 (+44.68%)
Mutual labels:  prayer-times, islam, islamic-prayer-times
Mosque-Screen
Chat: https://discord.gg/CG7frj2 - Email: [email protected]. We do not provide any support, this is a volunteer-based project therefore we cannot commit to any time to resolve local issues.
Stars: ✭ 54 (+14.89%)
Mutual labels:  prayer-times, islam, islamic-prayer-times
prayer-times-extension
Under Development: Prayer Time Calculation based on Geolocation for Chromium and Firefox
Stars: ✭ 61 (+29.79%)
Mutual labels:  prayer-times, islam
salat-cli
A Command line Utility to get the prayer's time in Morocco by city
Stars: ✭ 34 (-27.66%)
Mutual labels:  islam, islamic-prayer-times
IslamBot
A Discord bot that supports Qur'an, hadith, prayer times, tafsir and more.
Stars: ✭ 59 (+25.53%)
Mutual labels:  prayer-times, islam
Azkar-App
Desktop Application 💻 for Calculating Muslim prayer times 🕌 , Morning and Nights Azkar 🤲 with notification for random Azkar that pops-up in specific time.
Stars: ✭ 64 (+36.17%)
Mutual labels:  prayer-times, islam
MuezzinAPI
A web server application for Islamic prayer times
Stars: ✭ 33 (-29.79%)
Mutual labels:  prayer-times, islamic-prayer-times
Phpgpx
Simple library for reading and creating GPX files written in PHP.
Stars: ✭ 92 (+95.74%)
Mutual labels:  calculations
Php Number
Deal with numbers the right way in PHP
Stars: ✭ 88 (+87.23%)
Mutual labels:  calculations
Period
Complex period comparisons
Stars: ✭ 1,001 (+2029.79%)
Mutual labels:  calculations
Quantities
A library to work with quantities and units.
Stars: ✭ 32 (-31.91%)
Mutual labels:  calculations
Cosin
Android loading view library 📊🍭
Stars: ✭ 129 (+174.47%)
Mutual labels:  calculations
MathExpressions.NET
➗ Library for parsing math expressions with rational numbers, finding their derivatives and compiling an optimal IL code
Stars: ✭ 63 (+34.04%)
Mutual labels:  calculations
frechet
Discrete Fréchet distance and of the minimum path required for traversing with it
Stars: ✭ 14 (-70.21%)
Mutual labels:  calculations
pivottabler
Create Pivot Tables natively in R
Stars: ✭ 108 (+129.79%)
Mutual labels:  calculations
PrayerTimes
Desktop application 💻 for calculating Muslim prayer times 🕌 and setting an alarm (Adhan) ⏰ for the prayer times.
Stars: ✭ 151 (+221.28%)
Mutual labels:  prayer-times
tfsaggregator
A server side plugin for Team Foundation Server (TFS) and Azure DevOps Server for performing various Work Item related calculations, create new Work Items and Links automatically.
Stars: ✭ 122 (+159.57%)
Mutual labels:  calculations
React Pivot
React-Pivot is a data-grid component with pivot-table-like functionality for data display, filtering, and exploration.
Stars: ✭ 981 (+1987.23%)
Mutual labels:  calculations
Soulvercore
A powerful Swift framework for evaluating mathematical expressions
Stars: ✭ 245 (+421.28%)
Mutual labels:  calculations
Awesome-Muslims
A currated list of Awesome Muslim Resources to encourage and help developers produce more islamic apps.
Stars: ✭ 122 (+159.57%)
Mutual labels:  prayer-times

PrayerTime-Swift

Islamic Prayer (salah) Time calculation written in swift. This prayer time calculation code is mostly converted from Objective C version of similar class from praytimes.org.

What it Does

It calculates prayer times for any date(s) based on:

  • Latitude/Longitude
  • Calculation Method
  • Asr Method (Shafi'i/Hanafi)
  • ... and optional higher latitude adjustment

For more information about these calculation methods and how it is obtained, check out fine document at prayertimes.org's wiki page

How to Use

Just import AKPrayerTime.swift in your project, and:

// Create PrayerKit instance with your latitude/longitude
var prayerKit:AKPrayerTime = AKPrayerTime(lat: 23.810332, lng: 90.4125181)
// Optionally, set your preferred calculation method.
// Default is Muslim World Legue (MWL) method
prayerKit.calculationMethod = .Karachi
// Optionally, set your preferred Asr method.
// Default is Safi'i
prayerKit.asrJuristic = .Hanafi
// Optionally, set your output format.
// You can obviously format it later also
prayerKit.outputFormat = .Time12
// ... and finally, get your times
var times = prayerKit.getPrayerTimes()

// Then, you can use it as
times[.Fajr]    // 04:07 am
times[.Sunrise] // 05:27 am
// ...and follow included example and public methods in source for more possibilities!

Basic configurations

Property Options
calculationMethod .MWL ➠ Muslim World League
.ISNA ➠ Islamic Society of North America
.Egypt ➠ Egyptian General Authority of Survey
.Makkah ➠ Umm al-Qura University, Makkah
.Karachi ➠ University of Islamic Science, Karachi
.Tehran ➠ Institute of Geophysics, University of Tehran
.Jafari ➠ Shia Ithna Ashari, Leva Research Institute, Qum
.Custom ➠ Autometically set when parameters are changed manually
asrJuristic .Shafii ➠ As followed by Shafi'i, Maliki, Ja'fari, and Hanbali school
.Hanafi ➠ As followed by Hanafi school

More details will be added soon. Contribution in both source and documentation is most welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].