Skip to content

Cldr Calendars version 1.23.0

Compare
Choose a tag to compare
@kipcole9 kipcole9 released this 17 Dec 00:37
· 9 commits to main since this release

Breaking Change

  • Cldr.Calendar.weeks_in_year/1 now returns a tuple of the form {weeks_in_year, days_in_last_week} instead of an integer value. In particular for Gregorian based calendars, the value of weeks_in_year will be 53 and the value of days_last_week will be either 1 or 2 depending on whether it is a leap year or not.

Enhancements

  • Adds :week and :day to the options for <calendar>.plus/5. These are in addition to the already existing :year, :quarter and :month options. This addition is primarily to support tempo. This enhancement has no affect on the public API in the Cldr.Calendar module. The bump in minor release number is to allow for tempo to target the appropriate verison in a semver compatible manner.

  • Adds Cldr.Calendar.ISO which is a month-based calendar with weeks that start on Monday and the first week must have at least 4 days of the current year in it. This aligns to the ISO8601 standard and is the month-based counterpart to the week-based Cldr.Calendar.ISOWeek calendar already included in ex_cldr_calendars.