daysInYear

Calculates the number of days that exists in a year.

Leap years have 366 days, while other years have 365.

pure
uint
daysInYear
(
uint year
)

Parameters

year uint

The year to compute the number of days from.

Return Value

Type: uint

The number of days in the year, 365 or 366.

Meta