News for hackers. Stuff that matters.
Re:I bought ISO 8601-1:2019 and 8601-2:2019 by npongratz on Friday April 02, 2021 @12:37PM (#26673024)
The surprises never cease:

> Further below, in § 4.2.2, it's noted that the ordinal day number of the week starts at 1, which is Monday. 2000-01-01 is defined to be Saturday and the week calendar continues as a series of contiguous calendar weeks. This leads to e.g. the first day of 2019-W1 (a Monday) being 2018-12-31.

Re:I bought ISO 8601-1:2019 and 8601-2:2019 by jorams on Friday April 02, 2021 @12:44PM (#26673102)
Monday is considered the first day of the week in many countries[1].

Week years are based on the year in which most of the week occurs / whichever year contains the Thursday.

[1]: https://en.wikipedia.org/wiki/Names_of_the_days_of_the_week#...

Re:I bought ISO 8601-1:2019 and 8601-2:2019 by masklinn on Friday April 02, 2021 @01:17PM (#26673498)
I assume you are american?

That's the definition of the ISO week, which is very much the standard and in common use throughout europe. Monday being the first day of the week is also standard in europe.

Re:I bought ISO 8601-1:2019 and 8601-2:2019 by npongratz on Friday April 02, 2021 @02:06PM (#26674038)
The concept of Monday being the first day of the week isn't what surprises me. It was interesting to see the first day of the first week of 2019 is a date in 2018. EDIT: And I'm not in any way rendering judgment, merely uttering surprise.

(The country that claims me as its citizen is irrelevant, and obviously we are indeed discussing ISO's definition of a "week". )

Re:I bought ISO 8601-1:2019 and 8601-2:2019 by masklinn on Friday April 02, 2021 @03:15PM (#26674911)
> (The country that claims me as its citizen is irrelevant)

The country is indeed irrelevant. The culture however is not: as I noted, this week ordinal definition is standard in europe, and the only people I've seen 1. not know about this definition of the week (and the concept of week-year) and 2. care enough to express any sort of surprise, have been american.

> we are indeed discussing ISO's definition of a "week".

The information in my comment was that this is the standard week in europe, any time somebody talks in weeks (which is common in many, many businesses, people'll tell you they'll do a job W23, or will ship your order W36), that's the one they're talking about.

Re:I bought ISO 8601-1:2019 and 8601-2:2019 by randallsquared on Friday April 02, 2021 @02:15PM (#26674129)
If weeks are to be considered as a unit that exists "in" a year, then there is no non-surprising solution to this notion of the first and last week of the year.
Re:I bought ISO 8601-1:2019 and 8601-2:2019 by Dylan16807 on Saturday April 03, 2021 @01:23AM (#26678613)
Depends on your threshold of surprise. I would say that the end of a week going into the next year is much less surprising or even non-surprising.
Re:I bought ISO 8601-1:2019 and 8601-2:2019 by gowld on Saturday April 03, 2021 @08:20AM (#26680457)
It's surprising that a day in 2019 is not part of a week in 2019.
Re:I bought ISO 8601-1:2019 and 8601-2:2019 by Dylan16807 on Saturday April 03, 2021 @04:46PM (#26684579)
Out of context yes. In context the direction matters.

If I say that 3am on Saturday is part of "Friday night", that's not very surprising.

If I say that 10pm on Monday is part of "Tuesday morning", that's quite surprising.

Re:I bought ISO 8601-1:2019 and 8601-2:2019 by mvolfik on Saturday April 03, 2021 @06:56AM (#26679954)
I think there was some bug in a big service (Twitter? very unsure) a few years ago related to this conflict of ISO and 'real' year
Re:I bought ISO 8601-1:2019 and 8601-2:2019 by OJFord on Saturday April 03, 2021 @07:24AM (#26680100)
Well, there are I think only two reasonable definitions. One leads to the first day of the week being in the previous year; the other to the first day of the first week being six days into the year.

Each is independently 'surprising' in that it seems 'obviously wrong' without thinking about it.

Re:I bought ISO 8601-1:2019 and 8601-2:2019 by pimlottc on Friday April 02, 2021 @02:21PM (#26674217)
A common date formatting error is to accidentally use the “iso week year” instead of “calendar year”, which is the same 99% of the time except sometimes at the end of the year, as your example shows.

https://ericasadun.com/2018/12/25/iso-8601-yyyy-yyyy-and-why...