Year Helper

CI

This library provides some useful functions to deal with years.

Usage

```rust let year = 2020; let month = 2;

let leapyear = yearhelper::isleapyear(year);

let daysinmonth = yearhelper::getdaysinmonth(year, month); let daysinyear = yearhelper::getdaysinyear(year);

// or use the following functions if the year has been determined where it is a leap year let daysinmonth = yearhelper::getdaysinmonth2(leapyear, month); let daysinyear = yearhelper::getdaysinyear2(leapyear); ```

Crates.io

https://crates.io/crates/year-helper

Documentation

https://docs.rs/year-helper

License

MIT