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: Duration is missing Milliseconds() and Microseconds() getters #5491

Closed
guillermo opened this issue May 16, 2013 · 1 comment
Closed

Comments

@guillermo
Copy link

What steps will reproduce the problem?
1. Go to the Documetation of the time pkg expecting to find the Millisecond and
Microsecond helpers for type Duration.

What is the expected output?
func (d Duration) Milliseconds() int64
func (d Duration) Microseconds() int64


What do you see instead?
Nothing 


Which version are you using?  (run 'go version')
1.1
@rsc
Copy link
Contributor

rsc commented May 24, 2013

Comment 2:

Intentionally unimplemented. Use Seconds()*1e3 or Seconds()*1e6 or Nanoseconds()/1e6 or
Nanoseconds()/1e3, depending on whether you want an integer or floating point.

Status changed to WorkingAsIntended.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants