Formatting and parsing date/time
Go uses an interesting and somewhat controversial date/time formatting scheme. The date/time format is expressed using a specific point in time, adjusted such that every component of the date/time is a unique number:
- 1 is the month: “Jan” “January” “01” “1”
- 2 is the day of the month: “2” “_2” “02”
- 3 is the hour of the day in a 12-hour format: “15” “3” “03”
- 15 is the hour of the day in a 24-hour format,
- 4 is the minute: “4” “04”
- 5 is the second: “5” “05”
- 6 is the year: “2006” “06”
- MST is the timezone: “-0700” “-07:00” “-07” “-070000” “-07:00:00” “MST”
- 0 is the millisecond padded with 0s: “0” “...