Go-zh / tour

【已弃用】新版移至 website 代码仓库
http://tour.go-zh.org
BSD 3-Clause "New" or "Revised" License
1.52k stars 223 forks source link

Unix时间戳返回不准time.Now().Unix()) #383

Closed zhoulipeng closed 4 years ago

zhoulipeng commented 4 years ago

上下文: https://tour.go-zh.org/welcome/1

源代码如下:

package main

import "fmt" import "time"

func main() { fmt.Println("Hello, 世界") fmt.Println(time.Now().Unix()) }

---------------------------一段时间内总是输出同一个整数------------------ Hello, 世界 125789000

OlingCat commented 4 years ago

服务器的返回时间是固定的。