https://github.com/svycal/zonex
An Elixir library for compiling enriched time zone information
https://github.com/svycal/zonex
elixir time-zones
Last synced: about 1 year ago
JSON representation
An Elixir library for compiling enriched time zone information
- Host: GitHub
- URL: https://github.com/svycal/zonex
- Owner: svycal
- License: other
- Created: 2022-07-22T20:47:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T14:47:49.000Z (over 1 year ago)
- Last Synced: 2025-03-24T11:45:45.342Z (about 1 year ago)
- Topics: elixir, time-zones
- Language: Elixir
- Homepage: https://hexdocs.pm/zonex
- Size: 81.1 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Zonex [](https://hexdocs.pm/zonex/readme.html)
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.
```elixir
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:
```elixir
defmodule MyApp.Cldr do
use Cldr,
providers: [
Cldr.TimeZoneName,
# ...
],
# ...
end
```
Then, let Zonex know what CLDR backend module to use in your application config:
```elixir
# config/config.exs
config :zonex, cldr_backend: MyApp.Cldr
```