Packages
tzdata
0.1.201601
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-rc.1
1.0.0-rc.0
0.5.22
0.5.21
0.5.20
0.5.19
0.5.18
0.5.17
0.5.16
0.5.15
0.5.14
0.5.13
0.5.12
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.1.201805
0.1.201605
0.1.201603
0.1.201601
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
Tzdata is a parser and library for the tz database.
Current section
Files
Jump to
Current section
Files
README.md
Tzdata
======
[](https://travis-ci.org/lau/tzdata)
Tzdata. The [timezone database](https://www.iana.org/time-zones) in Elixir.
Extracted from the [Calendar](https://github.com/lau/calendar) library.
As of version 0.1.6 the tz release 2015e (from 2015-06-13 10:56:02 -0700)
is used. The tz release version can be verified with the following function:
```elixir
iex> Tzdata.tzdata_version
"2015e"
```
## Getting started
Use through the [Calendar](https://github.com/lau/calendar) library
or directly: it is available on hex as `tzdata`.
```elixir
defp deps do
[ {:tzdata, "~> 0.1.7"}, ]
end
```
## Documentation
Documentation can be found at http://hexdocs.pm/tzdata/
## When new timezone data is released
IANA releases new versions of the [timezone database](https://www.iana.org/time-zones) frequently. When that
happens, hopefully this library will be updated within 24 hours with the new
data and a new version of the tzdata Elixir package will be released.
As an alternative to getting a new version of tzdata, users of this library
can simply run the `dl_latest_data.sh` script and then recompile tzdata. Running
that script will update the data in the `source_data` directory. The files in the
`source_data` directory contains all the information about the timezones
and is used by the tzdata library at compile time.
## License
The tzdata Elixir library is released under the MIT license. See the LICENSE file.
The tz database files (found in the source_data directory) is public domain.