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: time.Now() produces incorrect output #8445

Closed
gopherbot opened this issue Jul 30, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@gopherbot
Copy link

commented Jul 30, 2014

by cloveryume:

In the attached picture, the first line is the output of golang
"time.Now().Unix()";
the third line is the output of C language "time(NULL)".
golang timestamp output is incorrect somtimes.

go version go1.3 linux/amd64

os:CentOS release 5.4

Attachments:

  1. go-timestamp.jpg (43232 bytes)
@davecheney

This comment has been minimized.

Copy link
Contributor

commented Jul 30, 2014

Comment 1:

I am sorry, Centos5/RHEL5 are not a supported platform.

Status changed to Unfortunate.

@davecheney

This comment has been minimized.

Copy link
Contributor

commented Jul 30, 2014

Comment 2:

That said, and keeping in mind that the 2.6.18 kernel is not supported, some users have
reported success by upgrading to the latest sub version of RHEL/Centos5.
@gopherbot

This comment has been minimized.

Copy link
Author

commented Jul 30, 2014

Comment 3 by cloveryume:

I have noticed that the system requirement is Linux 2.6.23 or later with glibc.Thanks.

@golang golang locked and limited conversation to collaborators Jun 25, 2016

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.