Crate praytime_rs

Crate praytime_rs 

Source
Expand description

§PrayTime - Prayer Times Calculator

A Rust implementation of the PrayTimes.org library for calculating Islamic prayer times.

This crate provides accurate prayer time calculations based on astronomical formulas and supports multiple calculation methods used around the world.

§Basic Usage

use praytime_rs::PrayTime;

let mut praytime = PrayTime::new("ISNA");
praytime.location(43.0, -80.0).timezone("America/Toronto");
let times = praytime.get_times(None);

Structs§

PrayTime
Main PrayTime calculator
PrayerTimes
Prayer times structure
TuneAdjustments
Time tuning adjustments for all supported prayer times

Enums§

AsrMethod
Asr calculation method
CalculationMethod
Prayer time calculation methods
HighLatitudeRule
High latitude adjustment method
MidnightMethod
Midnight calculation method
RoundingMethod
Rounding method for times
TimeFormat
Time format options