Add isIsoLeapYear variable and fix iyl documentation
This commit is contained in:
parent
35ed5804f3
commit
af9dd0819d
5 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue