Adhan
High precision prayer time library
Adhan is a well tested and well documented library for calculating Islamic prayer times implemented in different languages and platforms.
All astronomical calculations are high precision equations directly from the book “Astronomical Algorithms” by Jean Meeus. This book is recommended by the Astronomical Applications Department of the U.S. Naval Observatory and the Earth System Research Laboratory of the National Oceanic and Atmospheric Administration.
Repositories
-
adhan-swift
- Swift & Objective-C (iOS) implementation
-
adhan-js
- JavaScript (Node & Web browser) implementation
-
adhan-java
- Java (Android) implementation
-
adhan-testdata
- Shared compilation of prayer times for all implementations to test against
Additional Implementations
-
Adhan-csharp
- C# implementation developed by davidpet86
-
adhan-c
- C implementation developed by radcheb
-
salah
- Rust implementation developed by insha
-
adhan-dart
- Dart implementation developed by iamriajul
Discussion & Issues
Issues and feature requests that pertain to all the different platforms (such as a new calculation method) should be discussed in this repository. Discussions of adding a new language/platform implementation can also be posted here. Any issues related to bugs in a specific platform should be discussed in that platform's repository. Likewise, pull requests for supporting new platform and/or language features can be opened directly in that platform's repository.
Contributing
Adhan is made publicly available to provide a well tested and well documented library for Islamic prayer times to all developers. We accept feature contributions provided that they are properly documented and include the appropriate unit tests. We are also looking for contributions in the form of prayer times for different locations. We do ask that the source of the comparison values be properly documented. Pull requests for prayer times can be submitted to adhan-testdata. Pull requests for features and/or fixes for a specific language should be submitted to the appropriate repository.
License
Adhan is available under the MIT license. See the LICENSE file for more info.