Skip to main content

Crate zmanim_calculator

Crate zmanim_calculator 

Source
Expand description

Calculate zmanim (Jewish halachic times) using KosherJava-style concepts and naming.

Typical usage:

ZmanimCalculator::calculate returns Result<DateTime<Utc>, ZmanimError>. In edge cases (for example high latitudes on specific dates), calculations may return an error.

calculate takes &mut self so repeated calculations can reuse intermediate state. If Rust borrow rules are awkward for your call pattern, clone the calculator and use each clone independently.

Modulesยง

calculator
Calculation logic for zmanim.
prelude
Re-export the most commonly used types and traits.
presets
Predefined zmanim calculations built from reusable primitives. Predefined zmanim calculations built from reusable primitives.
primitive_zman
Low-level zman formulas used to build higher-level presets. Low-level zman formulas used to build higher-level presets.