#prayer #light-weight #islamic #prayer-times

prayers

Lightweight and highly accurate low-level library for calculating (Islamic) prayer times

4 releases

0.2.2 Apr 13, 2021
0.2.1 Apr 13, 2021
0.2.0 Apr 12, 2021
0.1.0 Apr 11, 2021

#400 in Date and time

MIT license

17KB
347 lines

Praye.rs

Lightweight and highly accurate low-level library for calculating (Islamic) prayer times.

Usage

use prayers::{CalculationMethods, Coordinates, HightLatMethods, PrayerManager, TimeZone, Utc};

let prayer_manager = PrayerManager::new(CalculationMethods::MWL, Some(HightLatMethods::NightMiddle));

let a_date = Utc.ymd(2021, 4, 12);
let a_house = Coordinates(38.8976763, -77.036529, 18.0);
let prayers = prayer_manager.get_times(a_date, a_house);

Dependencies

~1MB
~18K SLoC