Skip to content

Instantly share code, notes, and snippets.

@bendoerr
Created October 5, 2011 16:57
Show Gist options
  • Save bendoerr/1265003 to your computer and use it in GitHub Desktop.
Save bendoerr/1265003 to your computer and use it in GitHub Desktop.
List all of the Java TimeZone ids for a country
String country = "Australia"
println TimeZone.getAvailableIDs().findAll { it.matches /^(${country}).*/ }.join('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment