#astronomy #calendar #equinox #solstice #julian

solar-calendar-events

A library for calculating Equinoxes and Solstices

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

Download history 34/week @ 2023-03-10 7/week @ 2023-03-17 2/week @ 2023-03-24 27/week @ 2023-04-14 44/week @ 2023-04-21 5/week @ 2023-04-28 15/week @ 2023-05-05 2/week @ 2023-05-12

74 downloads per month

ISC license

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