That is a surprising amount of complexity, really makes you glad that ISO ironed out all the details, so when I recently told our development team composed of Swiss, German, Portuguese and Danish people that we would be going live in week 4 (of 2020), everyone understood just fine. I still find it strange that some countries have not adopted week numbers. Sure, you can say something like "the week of December 21st",…
ISO week date
21–30 of 91 posts
Re: ISO week date
#22Note that `strftime` (and implementations dependent on it - hello Python!) do not implement ISO week numbers. In `strftime` all days preceding the first Sunday/Monday (depending which date-code you pass to the function) in a year are classified as "Week 0" as opposed to the ISO definition. This means that `strftime` week numbers are generally 1 less than the ISO week number. As serendipity would have it I was delving…
Here is how to format an ISO week date with strftime: “%G-W%V-%u” This is in POSIX https://pubs.opengroup.org/onlinepubs/9699919799.2018edition... and C99 http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf Python’s documentation explicitly says it only describes the C89 formatting codes and that C99 has more features. https://docs.python.org/2.7/library/datetime.html#strftime-s...
Re: ISO week date
#23Earlier quoted context omitted.
I find week numbers very cumbersome to use. Most calendars don't have them by default and most everyday interactions around dates don't involve them. As a result it's a burdensome and unroutined lookup in some arbitrary calendar somewhere just to figure out ballpark distances from current moment. I much prefer date ranges.
Depends a lot on your locale. Physical calendars around here always have them, and all decent calendar software has an option to display them. And if you’d grown up with it, it would be a lot more natural. Much like you probably know what month you’re in without checking your watch, I have a pretty good idea what week we’re in, and if someone says they can deliver something in week 8, I instinctively know that’s late…
That’s like saying imperial units are more natural than ISO units because you grew up with them. Of course what you grew up with is more natural to you, it doesn’t say much. The problem is not everyone grew up with it, compared to “the week of Dec 21.”
Not saying week numbers aren’t useful, I’ve used them to label weekly results in datasets, for instance.
Re: ISO week date
#24That is a surprising amount of complexity, really makes you glad that ISO ironed out all the details, so when I recently told our development team composed of Swiss, German, Portuguese and Danish people that we would be going live in week 4 (of 2020), everyone understood just fine. I still find it strange that some countries have not adopted week numbers. Sure, you can say something like "the week of December 21st",…
First Thursday of January is always in week 1. That is actually the only rule needed.
Re: ISO week date
#25I want to compare the Monday of the first work week of the year to the Monday of the first work week of last year. That's most helpful when trying to understand sales trends, etc.
Re: ISO week date
#26That is a surprising amount of complexity, really makes you glad that ISO ironed out all the details, so when I recently told our development team composed of Swiss, German, Portuguese and Danish people that we would be going live in week 4 (of 2020), everyone understood just fine. I still find it strange that some countries have not adopted week numbers. Sure, you can say something like "the week of December 21st",…
Re: ISO week date
#27Re: ISO week date
#28All this complexity because we have to adhere to some pope from 400 years ago. It's just sad.
Re: ISO week date
#29That is a surprising amount of complexity, really makes you glad that ISO ironed out all the details, so when I recently told our development team composed of Swiss, German, Portuguese and Danish people that we would be going live in week 4 (of 2020), everyone understood just fine. I still find it strange that some countries have not adopted week numbers. Sure, you can say something like "the week of December 21st",…
how am I supposed to know when week 33 is?
Re: ISO week date
#30Twitter, Apple's iOS calendar alarms, the list goes on.