Skip to content

Instantly share code, notes, and snippets.

@zycbobby
Created November 3, 2015 07:06
Show Gist options
  • Save zycbobby/ee29e704f5f6838a5830 to your computer and use it in GitHub Desktop.
Save zycbobby/ee29e704f5f6838a5830 to your computer and use it in GitHub Desktop.

Revisions

  1. zycbobby created this gist Nov 3, 2015.
    7 changes: 7 additions & 0 deletions collection-map.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    func offset(tz string) int {
    if seconds, ok := timeZone[tz]; ok {
    return seconds
    }
    log.Println("unknown time zone:", tz)
    return 0
    }