var ab time.Time
ab = time.Now()
fmt.Println(ab.UnixNano() / 1000000)
var bc time.Time
bc = time.Now().UnixNano() // 为什么这种写法不可以;
fmt.Println(bc)
更多评论
Cannot use 'time.Now().UnixNano()' (type int64) as type time.Time in assignment.
#2