lau / tzdata

tzdata for Elixir. Born from the Calendar library.
MIT License
298 stars 71 forks source link

Method to convert an alias to a canonical zone? #117

Closed jsmestad closed 2 years ago

jsmestad commented 3 years ago

I may be missing this in the docs so I apologize in advance if I have. For example, how can I take "America/Godthab" and turn it into a canonical zone?

lau commented 2 years ago

Tzdata.links/0

Example:

iex> Tzdata.links |> Map.get("America/Godthab")
"America/Nuuk"