Releases: elixir-cldr/cldr_dates_times
Cldr Dates Times version 2.6.1
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
Enhancements
- Add support for CLDR 38
Cldr Dates Times version 2.6.0-rc.0
Enhancements
- Add support for CLDR 38
Cldr Dates Times version 2.5.4
Bug Fixes
- Use
Cldr.Date.default_backend/0
as a shim to provide compatibility for the upcomingex_cldr
version2.18.0
whereCldr.default_backend/0
is deprecated in favour ofCldr.default_backend!/0
Cldr Dates Times version 2.5.3
Bug Fixes
- Fix compiler warns on duplicate
@doc
on Elixir 1.11
Cldr Dates Times version 2.5.2
Bug Fixes
- Correct the spec for Cldr.DateTime.Relative.to_string!/3. Thanks to @loskobrakai.
Cldr Dates Times version 2.5.1
Bug Fixes
-
Use locale's number system if no optional number system is provided. Fixes
Cldr.Date
,Cldr.Time
andCldr.DateTime
-
Fix datetime formatting for
CalendarInterval
s that have minute precision. In these cases,:seconds
and:microseconds
should be zeroed. -
Fix links to
hex.pm
forcalendar_interval
Cldr Dates Times version 2.5.0
Enhancements
-
Add localized interval formatting with
Cldr.Interval.to_string/3
and specific implementations inCldr.Date.Interval.to_string/3
,Cldr.Time.Interval.to_string/3
andCldr.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
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 thehc
key of theu
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 byCldr.to_string/1
Cldr Dates Times version 2.4.0-rc.0
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 thehc
key of theu
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 byCldr.to_string/1