Skip to content
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

time: document when UnixNano overflows #16977

Closed
dsnet opened this issue Sep 3, 2016 · 1 comment
Closed

time: document when UnixNano overflows #16977

dsnet opened this issue Sep 3, 2016 · 1 comment

Comments

@dsnet
Copy link
Member

@dsnet dsnet commented Sep 3, 2016

When I use the UnixNano method, I have to do some math to discover that the value will overflow in the year 2262 (I never seem to remember this). While 2262 is very far out for most applications, perhaps we should document that is the maximum representable date as an int64 since Unix epoch?

I dont feel a need to do a similar statement in the Unix method since the overflow date for that is beyond anything reasonable.

@dsnet dsnet added the Documentation label Sep 3, 2016
@dsnet dsnet added this to the Unplanned milestone Sep 3, 2016
@gopherbot
Copy link

@gopherbot gopherbot commented Sep 4, 2016

CL https://golang.org/cl/28478 mentions this issue.

@gopherbot gopherbot closed this in b78108d Sep 14, 2016
@golang golang locked and limited conversation to collaborators Sep 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.