Crates.io | prayers |
lib.rs | prayers |
version | 0.2.2 |
source | src |
created_at | 2021-04-11 23:49:18.840999 |
updated_at | 2021-04-13 17:12:52.892905 |
description | Lightweight and highly accurate low-level library for calculating (Islamic) prayer times |
homepage | https://github.com/mesteery/praye.rs#homepage |
repository | https://github.com/mesteery/praye.rs |
max_upload_size | |
id | 382187 |
size | 17,421 |
Lightweight and highly accurate low-level library for calculating (Islamic) prayer times.
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);