-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange time.Parse() behavior. #18798
Comments
Your date format must correspond to Therefore you want your date format to probably be: Your received output was therefore correct. I think your expectations are also incorrect |
Makes sense, but how would you read that from the docs?
This is not that clear. |
Seems reasonably clear to me. Do you want to suggest a clarification? |
This has already been clarified further in Go 1.8; see https://tip.golang.org/pkg/time/#Time.Format . |
██ go version
go version go1.7.4 darwin/amd64
██ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/morris/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/tk/kxjq9h991j70hc37wvrzx10m0000gn/T/go-build886718705=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: