diff options
author | Rob Pike <r@golang.org> | 2010-02-04 15:39:27 +1100 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-02-04 15:39:27 +1100 |
commit | 93d148f4387f56d0926fd611bb2a9ff2f4ec502c (patch) | |
tree | a138663917ecda451fb9ebadf1025e34b78e5825 /src/pkg/time/zoneinfo.go | |
parent | 329fda055947b02ceb4e270f31baadeb1a9cdc5f (diff) | |
download | golang-93d148f4387f56d0926fd611bb2a9ff2f4ec502c.tar.gz |
Add RFC822 formats as named constants.
Make sure to print a time zone when formatting even if none is defined.
Add a comment introducing lookupTimezone (not lookupTimeZone).
Fixes isse 577.
R=rsc
CC=golang-dev
http://codereview.appspot.com/196090
Diffstat (limited to 'src/pkg/time/zoneinfo.go')
-rw-r--r-- | src/pkg/time/zoneinfo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/time/zoneinfo.go b/src/pkg/time/zoneinfo.go index 98d816b10..7884898f7 100644 --- a/src/pkg/time/zoneinfo.go +++ b/src/pkg/time/zoneinfo.go @@ -221,6 +221,7 @@ func setupZone() { } } +// Look up the correct time zone (daylight savings or not) for the given unix time, in the current location. func lookupTimezone(sec int64) (zone string, offset int) { once.Do(setupZone) if len(zones) == 0 { |