Add isIsoLeapYear variable and fix iyl documentation

This commit is contained in:
Joscha 2021-12-19 15:17:59 +01:00
parent 35ed5804f3
commit af9dd0819d
5 changed files with 10 additions and 2 deletions

View file

@ -19,6 +19,7 @@ pub fn month_length(year: i32, month: u32) -> u32 {
.day()
}
// Length of an ISO week year in days.
pub fn iso_year_length(year: i32) -> u32 {
if is_iso_leap_year(year) {
53 * 7