Skip to content

Instantly share code, notes, and snippets.

@lleger
Created June 2, 2021 21:00
Show Gist options
  • Save lleger/07dddb93cfffef141854c1d3e188ef8f to your computer and use it in GitHub Desktop.
Save lleger/07dddb93cfffef141854c1d3e188ef8f to your computer and use it in GitHub Desktop.
Elixir list of all US timezones
valid_us_zones = Enum.filter(Tzdata.zone_list(), fn tz ->
String.starts_with?(tz, "US")
end)
@lleger
Copy link
Author

lleger commented Jun 2, 2021

Requires tzdata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment