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.
Specs
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