4 ms·
So, people don't always pay attention to what they're reading?... strftime(3) says[0]: "This has the same format and value as %Y, except that if the ISO week n
by corrigible 8y ago
So, people don't always pay attention to what they're reading?... strftime(3) says[0]:
"This has the same format and value as %Y, except that if the ISO week number belongs to the previous or next year, that year is used instead. (TZ (Calculated from tm_year, tm_yday, and tm_wday.)"
[0]: http://man7.org/linux/man-pages/man3/strftime.3.html http://man7.org/linux/man-pages/man3/strftime.3.html
- paultopia 8y agoThe problem is that this text makes no sense standing alone... why would anyone imagine that a week number might belong to a year other than the year it's in without a separate detailed explanation?
- gkya 8y agoBecause not every year starts on monday?
- twic 8y agoI agree that most people, on reading it, wouldn't understand exactly what it meant. But i think an adequately sharp person would think "i don't understand exactly what that means, so i'm going to find out before i use it". A person whose response is "i don't understand exactly what that means, but it sounds close, so i'm going to use it" should probably not be doing detail work like programming.
- samatman 8y ago> This has the same format and value as %Y When I see a line like that, I check %Y immediately. Unless I'm tired, in a hurry, or just not paying enough attention.
- gpvos 8y ago...which happens to many people once in a while...
- deleted 8y ago[deleted]
- kazinator 8y agoThe text makes it clear that the week can belong to another year. This piece of documentation leaks numerous clues that it's describing something radioactive that you want to stay away from And it gives away the specifier that you want: %Y. "Same format as %Y except ..." means "this is some extended/twisted version of another year format, which is assigned to the obvious %Y letter. Hmm, maybe I should check that one out!"