#calendar #julian #solstice #astronomy #equinox

solar-calendar-events

Calculate Equinoxes and Solstices for years between 1900 and 2100

7 releases

0.2.1 Oct 12, 2024
0.2.0 Oct 12, 2024
0.1.4 Apr 24, 2023
0.1.1 Mar 15, 2023

#148 in Date and time

Download history 21/week @ 2024-07-23 15/week @ 2024-07-30 1/week @ 2024-09-24 2/week @ 2024-10-01 264/week @ 2024-10-08 38/week @ 2024-10-15

302 downloads per month

MIT/Apache

22KB
310 lines

solar-calendar-events

crates.io Documentation MIT or Apache-2.0

A Rust library designed to calculate equinoxes and solstices for a given year within the range 1900-2100. The accuracy is within a few minutes.

Example

let march_equinox_2003 = MarchEquinox::new(2003);
println!("{:#?}", march_equinox_2003);
// Ok(
    // MarchEquinox {
        // julian_day: 2452719.536962585,
        // date_time: 2003-03-21T00:53:13Z,
    // },
// )

License

This project is licensed under either of

Dependencies

~1.2–2MB
~35K SLoC