Skip to content
/ zonex Public

An Elixir library for compiling enriched time zone information

License

Notifications You must be signed in to change notification settings

svycal/zonex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

32c1b96 · Feb 25, 2025

History

48 Commits
Jul 26, 2022
Aug 22, 2022
Jun 20, 2023
Mar 29, 2023
Jun 20, 2023
Jul 22, 2022
Jul 22, 2022
Jul 26, 2022
Jun 20, 2023
Sep 5, 2022
Feb 25, 2025
Sep 5, 2022
Jun 20, 2023
Sep 5, 2022

Repository files navigation

Zonex Hex Docs

An Elixir library for compiling enriched time zone information.

Installation

Add zonex to your list of dependencies in mix.exs. You will also need to install and configure the ex_cldr library with the ex_cldr_time_zone_names plugin, since Zonex requires a CLDR backend for compiling time zone names.

def deps do
  [
    {:zonex, "~> 0.6.0"},

    # Additional required dependencies
    {:ex_cldr, "~> 2.33"},
    {:ex_cldr_time_zone_names, "~> 0.1"},

    # ...
  ]
end

In your application, configure your CLDR backend module:

defmodule MyApp.Cldr do
  use Cldr,
    providers: [
      Cldr.TimeZoneName,
      # ...
    ],
    # ...
end

Then, let Zonex know what CLDR backend module to use in your application config:

# config/config.exs

config :zonex, cldr_backend: MyApp.Cldr