在Go语言中根据如下的数字2006-01-02 15:04:05标示格式,当时觉得很奇怪,后来看了源码才知道作者设计的原因
The reference time used in the layouts is the specific time:
Mon Jan 2 15:04:05 MST 2006
which is Unix time 1136239445. Since MST is GMT-0700,
the reference time can be thought of as
01/02 03:04:05PM ‘06 -0700
参考:
format.go
有疑问加站长微信联系(非本文作者)