Skip to content

Instantly share code, notes, and snippets.

@jiripospisil
Created March 18, 2013 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jiripospisil/5187569 to your computer and use it in GitHub Desktop.
Save jiripospisil/5187569 to your computer and use it in GitHub Desktop.
func offset(tz string) int {
if seconds, ok := timeZone[tz]; ok {
return seconds
}
log.Println("unknown time zone:", tz)
return 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment