solar-calendar-events

Crates.iosolar-calendar-events
lib.rssolar-calendar-events
version0.2.1
sourcesrc
created_at2023-03-13 17:25:47.846233
updated_at2024-10-12 18:22:41.715532
descriptionCalculate Equinoxes and Solstices for years between 1900 and 2100
homepage
repositoryhttps://github.com/johanthoren/solar-calendar-events
max_upload_size
id809088
size88,740
Johan Thorén (johanthoren)

documentation

README

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

Commit count: 24

cargo fmt