Cldr Calendars version 1.23.0
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 ofweeks_in_year
will be 53 and the value ofdays_last_week
will be either1
or2
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 theCldr.Calendar
module. The bump in minor release number is to allow fortempo
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-basedCldr.Calendar.ISOWeek
calendar already included inex_cldr_calendars
.