📌  相关文章
📜  现在时间 golang int64 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:00.262000             🧑  作者: Mango

代码示例1
now := time.Now()      // current local time
sec := now.Unix()      // number of seconds since January 1, 1970 UTC
nsec := now.UnixNano() // number of nanoseconds since January 1, 1970 UTC

fmt.Println(now)  // time.Time
fmt.Println(sec)  // int64
fmt.Println(nsec) // int64