News for hackers. Stuff that matters.
Re:New in Go 1.20: wrapping multiple errors by p-e-w on Sunday December 11, 2022 @09:00AM (#33943223)
> slight inconvenience for non-US citizens

So, 96% of the world's population?

And even in the US, science and engineering projects commonly use ISO dates.

Go's date formatting is as if a random American had taken a quick glance at a paper calendar pinned to the side of their fridge, and decided "yeah, let's do it like that".

Re:New in Go 1.20: wrapping multiple errors by divan on Sunday December 11, 2022 @09:10AM (#33943319)
Most people can remember "January 2nd" and don't think about US-date vs non-US date.
Re:New in Go 1.20: wrapping multiple errors by deivid on Sunday December 11, 2022 @10:14AM (#33943845)
Or "the second of January", as it may map better to your language ("El dos de Enero")
Re:New in Go 1.20: wrapping multiple errors by fcarraldo on Sunday December 11, 2022 @11:45AM (#33944756)
Or “le deuxième de janvier”, or “der zweite Januar”, or…
Re:New in Go 1.20: wrapping multiple errors by moogly on Sunday December 11, 2022 @01:33PM (#33945923)
Well...

January 2nd?

or

January 2?

or

2 January?

Re:New in Go 1.20: wrapping multiple errors by divan on Sunday December 11, 2022 @03:54PM (#33947384)
Just remember the date and use it in your date formatting string.

If you want today to be printed as "December 11" put "January 2" in your Format() call. If you want "11 December", put "2 January". No need to remember any alphabet mappings anymore, it's way simpler.