Hacker News new | ask | show | jobs
by x3n0ph3n3 1465 days ago
I'm still baffled by their decision around date formatting.

https://www.godateformat.com/

3 comments

I 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".
1999-12-31T23:59:60 would make it easier to remember what the constants are.
The 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.
I wrote 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...).
This makes no sense to me. First time I’ve been confused about date formatting.