5 releases
0.1.4 | Apr 24, 2023 |
---|---|
0.1.3 | Apr 24, 2023 |
0.1.2 | Apr 18, 2023 |
0.1.1 | Mar 15, 2023 |
0.1.0 | Mar 13, 2023 |
#189 in Date and time
74 downloads per month
15KB
237 lines
solar-calendar-events
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 usage:
let march_equinox_2003 = MarchEquinox::new(2003);
println!("{:#?}", march_equinox_2003);
// Some(
// MarchEquinox {
// year: 2003,
// julian_day: Some(
// 2452719.536962585,
// ),
// date_time: Some(
// 2003-03-21 0:53:13.0 +00:00:00,
// ),
// },
//)
Dependencies
~570KB
~11K SLoC