3 ms·
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
by true_religion 8y ago
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 https://docs.python.org/2/library/time.html
- jwilk 8y ago> 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.
- paultopia 8y agoThat 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.
- gkya 8y agoIt 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.