This library provides some useful functions to deal with years.
```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); ```
https://crates.io/crates/year-helper
https://docs.rs/year-helper