ISO week date
en.wikipedia.org
ISO week date
1–10 of 91 posts
Re: ISO week date
#2Re: ISO week date
#3ISO week numbers are used a lot in some industries here in Sweden. For example education, so everyone here has encountered them at some point in their lives.
Re: ISO week date
#4ISO week numbers are used a lot in some industries here in Sweden. For example education, so everyone here has encountered them at some point in their lives.
It’s the first thing I (Norwegian) turn on (or miss) in calendar implementations. Most things are based on week number here too.
Used to have an .ics laying around for that purpose.
Re: ISO week date
#5I still find it strange that some countries have not adopted week numbers. Sure, you can say something like "the week of December 21st", but simply saying "week 52" is so much easier, and if you, like many software teams do, work in two week sprints, it saves you from a lot of date math.
Re: ISO week date
#6ISO week numbers are used a lot in some industries here in Sweden. For example education, so everyone here has encountered them at some point in their lives.
Which would translate to Wednesday January 8th year 2020
It is useful for deadlines because you always now how many weeks it is left.
Re: ISO week date
#7As serendipity would have it I was delving into this issue just this morning... :O
Re: ISO week date
#8Note 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…
Re: ISO week date
#9That 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
#10Note 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…
“%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...