5 ms·
From the docs, the magic reference date: 01/02 03:04:05PM '06 -0700 So that's why it's in 2006, since you asked. https://pkg.go.dev/time#pkg-constants https:
by gepoch 4y ago
From the docs, the magic reference date:
01/02 03:04:05PM '06 -0700
So that's why it's in 2006, since you asked.
https://pkg.go.dev/time#pkg-constants https://pkg.go.dev/time#pkg-constants
- coolgoose 4y agoIt's still Imho one of the worst decisions Go did, it definitely not easier to read or reason about.
- gepoch 4y agoYeah... Just have to remember that the year comes before the time zone but after the seconds :clown: No idea where that came from. Probably the time format from the punchcard machine at bell labs. If it was iso 8601 based, it would almost make sense.