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
See @rsc's comment at #18991 (comment).
I was thinking of adding:
// Truncate returns the result of rounding d towards zero // to a multiople of td. func (d Duration) Truncate(td Duration) Duration
I'll send a CL but I want to make sure this looks good.
The text was updated successfully, but these errors were encountered:
Do we need Round as well, then?
Sorry, something went wrong.
Yeah, if we have Truncate, I reckon we should have Round too.
Yes, Duration and Round together please. Let's call the parameter some single letter, like m (as in "multiple of m").
CL https://golang.org/cl/36615 mentions this issue.
45356c1
No branches or pull requests
See @rsc's comment at #18991 (comment).
I was thinking of adding:
I'll send a CL but I want to make sure this looks good.
The text was updated successfully, but these errors were encountered: