Skip to content

Instantly share code, notes, and snippets.

@cacheleocode
Created June 26, 2013 00:21
Show Gist options
  • Select an option

  • Save cacheleocode/5863707 to your computer and use it in GitHub Desktop.

Select an option

Save cacheleocode/5863707 to your computer and use it in GitHub Desktop.
switch(tz.name())
{
case "America/Caracas":
// execute code block 1
break;
case 2:
// execute code block 2
break;
default:
// code to be executed if n is different from case 1 and 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment