Expand description
Rust library to compute prayer times
Example
use salati::prelude::*;
let tunis = Coordinates::new(36.8065, 10.1815);
let date = Utc.ymd(2022, 8, 1);
let params = ParametersBuilder::with(Method::MuslimWorldLeague, Madhab::Shafi);
let prayers = PrayerTimes::new(date, tunis, params);
println!("fajr: {}", prayers.fajr.datetime.unwrap());
println!("sunrise: {}", prayers.sunrise.datetime.unwrap());
println!("dhuhr: {}", prayers.dhuhr.datetime.unwrap());
println!("asr: {}", prayers.asr.datetime.unwrap());
println!("maghrib: {}", prayers.maghrib.datetime.unwrap());
println!("isha: {}", prayers.isha.datetime.unwrap());