The Golang documentation defines "Mon Jan 2 15:04:05 MST 2006" as the reference time used in time formatting and parsing functions. But where does this peculiar date and time come from?
Immediately following the reference to the layout, the documentation provides a clue:
Since MST is GMT-0700, the reference time can be thought of as 01/02 03:04:05PM '06 -0700.
The reference time follows an ascending pattern:
The use of 3 PM (03:04 PM) instead of 3 AM (03:04 AM) is likely to ensure that the two-digit hour representations, 15:04 and 03:04 PM, are clearly distinguishable.
The above is the detailed content of Why is 'Mon Jan 2 15:04:05 MST 2006' the Reference Time in Golang?. For more information, please follow other related articles on the PHP Chinese website!