fmt.Println(time.Now())
打印结果:2017-11-18 16:36:41.8491739 +0800 CST m=+0.008006700
上面的m=+0.008006700 是什么意思?我该如何去掉,只需要我的time实例能打印到CST为止
有疑问加站长微信联系(非本文作者)

fmt.Println(time.Now())
打印结果:2017-11-18 16:36:41.8491739 +0800 CST m=+0.008006700
上面的m=+0.008006700 是什么意思?我该如何去掉,只需要我的time实例能打印到CST为止
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
`单行代码`
试试
"2006-01-02 15:04:05.0000000 -0700 MST" 用这个模板是可以的,但是m=+0.008006700 到底是啥东西
If the time has a monotonic clock reading, the returned string includes a final field "m=±<value>", where value is the monotonic clock reading formatted as a decimal number of seconds.
不太理解这句话
http://docs.studygolang.com/pkg/time/#Time.String
查了一下,好像是什么相对时间,用于程序调试用?我也不是太明白