Skip to content

runtime: nanosecond precision lost since mac os x high sierra update #22037

Closed
@mgom

Description

@mgom

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go1.9 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

Mac OS X High Sierra

What did you do?

fmt.Println(time.Now().UnixNano())

What did you expect to see?

i would expect to display amount of nanoseconds

What did you see instead?

nanosecond part is not filled
some results
1506416154931120000
1506416154931136000
1506416154931138000
1506416154931139000
1506416154931140000

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.OS-Darwin

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions