News for hackers. Stuff that matters.
Re:Strftime's alpha-sorted man page vs. well-meaning people by true_religion on Sunday May 13, 2018 @08:27AM (#17058575)
Interestingly enough, I've never heard of %G or the ISO Week. I thought I was familiar with the ups and downs of strftime but I've mostly used it through Python and the Python reference helpfully neglects to mention %G or any tricksy parameters that you may get confused by.

https://docs.python.org/2/library/time.html

Re:Strftime's alpha-sorted man page vs. well-meaning people by jwilk on Sunday May 13, 2018 @09:02AM (#17058687)
> Additional directives may be supported on certain platforms, but only the ones listed here have a meaning standardized by ANSI C

%G was added only in C99.

Re:Strftime's alpha-sorted man page vs. well-meaning people by paultopia on Sunday May 13, 2018 @09:41AM (#17058844)
That gotcha was added? Woah. I was thinking it must have been some legacy thing that hasn't gotten removed because there's code from, like, the dark ages buried in the drivers and such that depends on it.
Re:Strftime's alpha-sorted man page vs. well-meaning people by gkya on Sunday May 13, 2018 @10:40AM (#17059120)
It was probably useful to someone else. I don't get why it should be a gotcha. Libraries can not be optimized for individuals and features that one does not use are not gotchas.