golang中time类型的这个是什么意思?

`fmt.Println(time.Now())` `打印结果:2017-11-18 16:36:41.8491739 +0800 CST m=+0.008006700` 上面的`m=+0.008006700` 是什么意思?我该如何去掉,只需要我的time实例能打印到CST为止
已邀请:

kekemuyu - 简单就好

赞同来自: ddxx11223 melo

常用time.Format("2006-01-02 15:04:05")

singlethread - 5年老菜鸟,可以用任意语言写hello world,喜欢go

赞同来自: swing ddxx11223

**fmt.Println**会调用`String()`方法,所以看一下time.Time的String方法,文档:
> If the time has a monotonic clock reading, the returned string includes a final field "m=±", where value is the monotonic clock reading formatted as a decimal number of seconds.

> The returned string is meant for debugging; for a stable serialized representation, use t.MarshalText, t.MarshalBinary, or t.Format with an explicit format string.

`monotonic clock reading`就是你要找的 [解释在此](http://blog.csdn.net/peterlin666/article/details/32344355)

tom0001

赞同来自: ddxx11223

你用Format可以自定义时间格式

要回复问题请先登录注册