time/Calendar: add DaysInYear()
This commit is contained in:
parent
50a617764a
commit
31c7151580
@ -51,3 +51,9 @@ DaysInMonth(unsigned month, unsigned year) noexcept
|
|||||||
else
|
else
|
||||||
return DaysInFebruary(year);
|
return DaysInFebruary(year);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr unsigned
|
||||||
|
DaysInYear(unsigned year) noexcept
|
||||||
|
{
|
||||||
|
return IsLeapYear(year) ? 366 : 365;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user