-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Milestone
Description
Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version)?
go version go1.6.3 darwin/amd64 - What operating system and processor architecture are you using (
go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/zach/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.3/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
- What did you do?
I created atime.Timeusing a large Unix timestampt that corresponds to a date with a year >9999. I formatted the time and parsed the result.
Playground demo: https://play.golang.org/p/QSE-o48r5c - What did you expect to see?
I expected Go to be able to parse the time it formatted using the same layout. Given thatFormatproduced the timestamp,time.Parseshould be able to parse it. - What did you see instead?
It returned an error.
williambanfield and ericlagergren