Origin of “Mon Jan 2 15:04:05 MST 2006” in golang

前端 未结 2 669
时光说笑
时光说笑 2021-02-01 15:31

In golang documentation, it is stated that :

These are predefined layouts for use in Time.Format and Time.Parse. The reference time used in the layouts

2条回答
  •  没有蜡笔的小新
    2021-02-01 16:18

    It is just the numbers 1 2 3 4 5 6 7

    1: month (January, Jan, 01, etc)

    2: day

    3: hour (15 is 3pm on a 24 hour clock)

    4: minute

    5: second

    6: year (2006)

    7: timezone (GMT-7 is MST)

提交回复
热议问题