Follow

I've just found out that to declare a date format in go, instead of using some sensible format, you have to format this date yourself:

Mon Jan 2 15:04:05 MST 2006

so instead of "hh:mm yyyy-mm-dd", your format specifier has to be "15:04 2006-01-02" with that exact date, otherwise it won't work

sorry, /what/?

@coesor absolutely deranged.

i also love how the documentation overview implies you can just go t.format("A few hours before the kickoff at the 2006 Tostitos Fiesta Bowl foorball game") and get sensible output

@Vierkantor free fuzzy clocks! I think my personal highlight from the documentation is where it says that it's easy to remember if you just think of "01/02 03:04:05PM '06 -0700", as if anyone has ever written a date like that in their lives

Sign in to participate in the conversation
types.pl

A Mastodon instance for programming language theorists and mathematicians. Or just anyone who wants to hang out.