svycal / zonex

An Elixir library for compiling enriched time zone information

Home Page:https://hexdocs.pm/zonex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.TimeZoneNames,
      # ...
    ],
    # ...
end

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

# config/config.exs

config :zonex, cldr_backend: MyApp.Cldr

About

An Elixir library for compiling enriched time zone information

https://hexdocs.pm/zonex

License:Other


Languages

Language:Elixir 100.0%