Skip to content

time: time.Now() produces incorrect output #8445

@gopherbot

Description

@gopherbot

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions