jdate
This is my attempt at writing a Jewish calendar converter in Rust. This was
inspired by the hebcal project.
Features
- Convert a gregorian date to a Jewish date
- Convert a jewish date to a gregorian date
- Calculate the molad of the start of a year
Example
use jdate::JDate;
use time::Date;
fn main() {
let date1 = jdate::gdate(2025, 1, 1).unwrap();
let date2 = JDate::from(date1);
println!("{date2}"); let date1 = JDate::new(5785, 1, 1).unwrap();
let date2 = Date::from(date1);
println!("{date2}");
let today = jdate::today();
let today_jdate = JDate::from(today);
println!("Today is {today} = {today_jdate}");
}