Date.months_in_year
You're seeing just the function
months_in_year
, go back to Date module for more information.
Specs
months_in_year(Calendar.date()) :: Calendar.month()
Returns the number of months in the given date
year.
Example
iex> Date.months_in_year(~D[1900-01-13])
12