Ex_Cldr_Dates_Times v2.9.0 Release Notes
-
This is the changelog for Cldr_Dates_Times v2.9.0 released on August 14th, 2021. For older changelogs please consult the release tag on GitHub
๐ Bug fixes
- ๐ Fix splitting interval formats when there is no repeating field. Use the principal that standalone formats are equivalent to normal formats when splitting. ie, for this purposes "L" == "M". This means the locale "fa" no longer raises an exception.
โจ Enhancements
- ๐ Allow formatting of intervals where one side is
nil
. This will produce an open-ended interval. Only one side of the interval can benil
. Thanks to @woylie for the request. Closes #23.
Examples
iex> Cldr.Date.Interval.to_string ~D[2020-01-01], nil, MyApp.Cldr, ...> format: :short {:ok, "1/1/20 โ"} iex> Cldr.Time.Interval.to_string ~U[2020-01-01 00:00:00.0Z], nil, MyApp.Cldr, ...> format: :long, style: :flex {:ok, "12:00:00 AM UTC โ"} iex> Cldr.DateTime.Interval.to_string ~U[2020-01-01 00:00:00.0Z], nil, MyApp.Cldr {:ok, "Jan 1, 2020, 12:00:00 AM โ"}