We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
go version
tip (go version devel +0c9325e Wed Feb 8 17:54:06 2017 +0000 linux/amd64)
go env
linux/amd64
package main import ( "fmt" "time" ) func main() { time.Sleep(200 * time.Millisecond) t := time.Now() fmt.Println(t) t = t.Add(-time.Second) fmt.Println(t) }
This printed
2017-02-08 10:34:35.543437741 -0800 PST m=+0.200282679 2017-02-08 10:34:34.543437741 -0800 PST m=-1.200282679
Given the first timestamp, the second line should instead have been
2017-02-08 10:34:34.543437741 -0800 PST m=-0.799717321
Looks like that method could also use a test. If it's OK, I'll send a CL.
/cc @rsc
The text was updated successfully, but these errors were encountered:
Yes, please. Thanks.
Sorry, something went wrong.
CL https://golang.org/cl/36611 mentions this issue.
7ad512e
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?tip (go version devel +0c9325e Wed Feb 8 17:54:06 2017 +0000 linux/amd64)
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
This printed
Given the first timestamp, the second line should instead have been
Looks like that method could also use a test. If it's OK, I'll send a CL.
/cc @rsc
The text was updated successfully, but these errors were encountered: