]> Cypherpunks repositories - gostls13.git/commit
time: deal a bit better with time zones in Parse
authorRuss Cox <rsc@golang.org>
Mon, 4 Feb 2013 04:02:12 +0000 (23:02 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 4 Feb 2013 04:02:12 +0000 (23:02 -0500)
commit1d9f67daf0e8ba950da75f68f1f3f2650b13cd67
tree50019a1369ee7e676b8de3f32444080609ab7775
parent873c7d39aa70b1c9174ae18ee97e33891b45e7fa
time: deal a bit better with time zones in Parse

* Document Parse's zone interpretation.
* Add ParseInLocation (API change).
* Recognize "wrong" time zone names, like daylight savings time in winter.
* Disambiguate time zone names using offset (like winter EST vs summer EST in Sydney).

The final two are backwards-incompatible changes, but I believe
they are both buggy behavior in the Go 1.0 versions; the old results
were more wrong than the new ones.

Fixes #3604.
Fixes #3653.
Fixes #4001.

R=adg
CC=golang-dev
https://golang.org/cl/7288052
src/pkg/time/example_test.go
src/pkg/time/format.go
src/pkg/time/time_test.go
src/pkg/time/zoneinfo.go