Skip to content

Instantly share code, notes, and snippets.

@lleger
Created June 2, 2021 21:00
Show Gist options
  • Select an option

  • Save lleger/07dddb93cfffef141854c1d3e188ef8f to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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