#calendar #julian #solstice #astronomy #equinox

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

#321 in Date and time

Download history 3/week @ 2024-02-23 2/week @ 2024-03-01 5/week @ 2024-03-15 63/week @ 2024-03-22

70 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

~745KB
~13K SLoC