Skip to content

Releases: elixir-cldr/cldr_dates_times

Cldr Dates Times version 2.6.1

01 Dec 05:10
Compare
Choose a tag to compare

Performance improvements

  • Don't transliterate when the number system is :latn (which it most commonly is). The improves formatting performance by about 40%.

  • Handle default parameters more efficiently which improves performance by a further 10%.

Cldr Dates Times version 2.6.0

09 Nov 12:07
Compare
Choose a tag to compare

Enhancements

Cldr Dates Times version 2.6.0-rc.0

27 Oct 01:50
Compare
Choose a tag to compare
Pre-release

Enhancements

Cldr Dates Times version 2.5.4

26 Sep 07:55
Compare
Choose a tag to compare

Bug Fixes

  • Use Cldr.Date.default_backend/0 as a shim to provide compatibility for the upcoming ex_cldr version 2.18.0 where Cldr.default_backend/0 is deprecated in favour of Cldr.default_backend!/0

Cldr Dates Times version 2.5.3

21 Sep 22:21
Compare
Choose a tag to compare

Bug Fixes

  • Fix compiler warns on duplicate @doc on Elixir 1.11

Cldr Dates Times version 2.5.2

02 Sep 16:08
Compare
Choose a tag to compare

Bug Fixes

  • Correct the spec for Cldr.DateTime.Relative.to_string!/3. Thanks to @loskobrakai.

Cldr Dates Times version 2.5.1

16 Jun 21:45
Compare
Choose a tag to compare

Bug Fixes

  • Use locale's number system if no optional number system is provided. Fixes Cldr.Date, Cldr.Time and Cldr.DateTime

  • Fix datetime formatting for CalendarIntervals that have minute precision. In these cases, :seconds and :microseconds should be zeroed.

  • Fix links to hex.pm for calendar_interval

Cldr Dates Times version 2.5.0

13 Jun 02:20
Compare
Choose a tag to compare

Enhancements

  • Add localized interval formatting with Cldr.Interval.to_string/3 and specific implementations in Cldr.Date.Interval.to_string/3, Cldr.Time.Interval.to_string/3 and Cldr.DateTime.to_string/3

  • Add <backend>.Interval.to_string/3, <backend>.Date.Interval.to_string/3, <backend>.Time.Interval.to_string/3, <backend>.DateTime.Interval.to_string/3

  • Add :precompiled_interval_formats defined in the backend configuration

Cldr Dates Times version 2.4.0

12 May 16:01
Compare
Choose a tag to compare

Enhancements

  • Add Cldr.Time.hour_format_from_locale/1 to return the hour formatted preferred for a locale

  • Add Cldr.DateTime.Formatter.hour/{2, 4} that formats the hour part of a time in accordance with locale preferences (including honouring the hc key of the u language tag extension)

  • Add format symbol ddd to return the day of the month with ordinal formatting. This not a CLDR standard format symbol.

  • Add protocol support for Cldr.Chars which is used by Cldr.to_string/1

Cldr Dates Times version 2.4.0-rc.0

03 May 18:13
Compare
Choose a tag to compare
Pre-release

Enhancements

  • Add Cldr.Time.hour_format_from_locale/1 to return the hour formatted preferred for a locale

  • Add Cldr.DateTime.Formatter.hour/{2, 4} that formats the hour part of a time in accordance with locale preferences (including honouring the hc key of the u language tag extension)

  • Add format symbol ddd to return the day of the month with ordinal formatting. This not a CLDR standard format symbol.

  • Add protocol support for Cldr.Chars which is used by Cldr.to_string/1