Calendar.ISO.leap_year-question-mark

You're seeing just the function leap_year-question-mark, go back to Calendar.ISO module for more information.
Link to this function

leap_year?(year)

View Source (since 1.3.0)

Specs

leap_year?(year()) :: boolean()

Returns if the given year is a leap year.

Examples

iex> Calendar.ISO.leap_year?(2000)
true
iex> Calendar.ISO.leap_year?(2001)
false
iex> Calendar.ISO.leap_year?(2004)
true
iex> Calendar.ISO.leap_year?(1900)
false
iex> Calendar.ISO.leap_year?(-4)
true