6 ms·
The "week date" format (yyyy-www-d) in ISO8601 is IMHO why it's usually better to refer to RFC3339, which doesn't allow the week date format. So many people ar
by AlanYx 6y ago
The "week date" format (yyyy-www-d) in ISO8601 is IMHO why it's usually better to refer to RFC3339, which doesn't allow the week date format.
So many people are unaware that the ISO8601 format allows "week date" and/or don't understand its quirks, and articles like this one, which don't even mention that ISO8601 dates can appear in this format, compound the problem.
- rswail 6y agoWhat about the Durations and Intervals? The "Week" format is great for planning purposes, because it allows a granularity between days and months with another whole number per year. Saying that a task will begin 2021-W08 and then defining the start of the week (ISO8601 says its a Monday), tells you exactly when it will start. Saying the task is 2021-W08/P4D tells you exactly when it starts and how long it will take. Or P4D/2021-02-25 says the same thing but in terms of when it will end. They're just as unambigious and just as useful.
- nemetroid 6y agoWeek numbering introduces confusion when interacting with countries like the U.S. where weeks aren't considered to start on Mondays.
- EdwardDiego 6y agoYeah I am a fan of ISO-8601 durations.
- athorax 6y agoIt does mention it though, FTA: ...and a calendar where the year is separated not by months but by weeks, which is used in finances, but here we’re only interested in the basics.
- notatoad 6y agoi don't think mentioning it in the context of specifically excluding it is going to cause any confusion though.