Ex_Cldr_Dates_Times v2.3.0 Release Notes

Release Date: 2020-02-02 // about 4 years ago
  • This is the changelog for Cldr_Dates_Times v2.3.0 released on February 2nd, 2020. For older changelogs please consult the release tag on GitHub

    ✨ Enhancements

    • Adds backend modules MyApp.Cldr.Date, MyApp.Cldr.Time and MyApp.Cldr.DateTime that contain the functions to_string/2 and to_string!/2. This means all the ex_cldr family of libraries should now be primarily called on the backend modules. This makes aliasing easier too. For example:
    defmodule MyApp.Cldr do
      use Cldr, providers: [Cldr.Number, Cldr.DateTime], default_locale: "en"
    end
    
    defmodule MyApp do
      alias MyApp.Cldr
    
      def some_fun do
        Cldr.Date.to_string Date.utc_today()
      end
    end