Expand description
Calculate zmanim (Jewish halachic times) using KosherJava-style concepts and naming.
Typical usage:
- Build a
Location. - Create a
ZmanimCalculatorwith a date andCalculatorConfig. - Compute times using ready-made definitions from
presets(for example,presets::SUNRISEandpresets::SUNSET).
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.