> Ramblings >

Stupid go time

Unique values eliminate ambiguity

Each component of the reference date uses a unique value:

Month → 01

Day → 02

Hour → 03

Minute → 04

Second → 05

Year → 2006

Timezone offset → -0700

Because each numeric value is unique, there's no confusion about what each part represents

https://stackoverflow.com/questions/42217308/go-time-format-how-to-understand-meaning-of-2006-01-02-layout?utm_source=chatgpt.com

Neko