4 ms·
I'm still baffled by their decision around date formatting. https://www.godateformat.com/ https://www.godateformat.com/
by x3n0ph3n3 4y ago
I'm still baffled by their decision around date formatting.
https://www.godateformat.com/ https://www.godateformat.com/
- Beltalowda 4y agoI find 15:04:05 on Monday Jan 2nd 2006 a lot easier to remember than all those strftime %-verbs. I certainly don't see how "%B %e, %Y" is any better than "January _2, 2006". %B for what? Bonth name? And %e for "d for day plus one so %e".
- erik_seaberg 4y ago1999-12-31T23:59:60 would make it easier to remember what the constants are.
- Beltalowda 4y agoThe way I remember it is that it counts from 1 to 7: 2006-01-02T15:04:05Z-0700 It's unfortunate that the year is 2006 and sandwiched between the minute and TZ offset, but this keeps the day at Monday (1st day of the week, for many anyway) so that's nice.
- thegeekpirate 4y agoI wrote https://golangti.me https://golangti.me because I never remember _any_ of the formatting types (besides Excel (which isn't as extensive)—d, dd, ddd, dddd, m, mm, mmm, mmmm, mmmmm...).
- philliphaydon 4y agoThis makes no sense to me. First time I’ve been confused about date formatting.