Cldr.Calendar.periods_in_year

You're seeing just the callback periods_in_year, go back to Cldr.Calendar module for more information.

Specs

periods_in_year(year :: Calendar.year()) :: week() | Calendar.month()

Returns the number of periods (which are months in a month calendar and weeks in a week calendar) in a year