N = daysinyear(Year)
Year
[ numeric ] - Year.N
[ numeric ] - Number of days in Year
.N
is 365
for non-leap years, and 366
for leap years. Leap years are either years divisible by 4
but not 100
, or years divisible by 400
.
daysinyear([2000,2200])
ans =
366 365