-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
week number rules depend on locale #886
Comments
I've slightly modified the first sentence to indicate the locale dependence.
Regarding the second one: we already received a comment #726 requesting that we add the explanation of the ISO 8601 definition, which is what you see now. If that is incorrect then we may have conflicting requests, and I'm not sure how to reconcile them. Do you have a suggestion about the appropriate wording? |
How about this:
|
I agree with the new wording. The only other concern is that this ISO text is stable and will not, and has not, changed over the years. |
That wording isn't necessarily correct though. For starters, some cultures/locales count Sunday as the first day of the week (en-US is one of these). Some locales count Monday as the first day of the week (en-GB is one of these). The week counting rule for a given locale depends on (somewhat more idiosyncratic) cultural norms. ISO8601 has picked one of these (@chris-little: long ago and have never and are unlikely ever to change it) to form the week numbering in that standard. They chose the "first Thursday" method because it is fairly common. However, there are a number of locales that use "the week that the 1st falls in", regardless of the day of the week. So I'd suggest:
Note that I don't make mention of other systems. |
Perhaps I misunderstood: what does ISO 8601 actually specify? If both are true, then I think my original wording was correct (though perhaps some more options than 8601 should be canvassed); @aphillips the first sentence in your proposed text is implicit (or at least not forbidden) by the last sentence in my version. Can you please tease out for me what is needed as a consequence of ISO 8601 and what is conventional and locale specific. |
The problem is not what ISO 8601 specifies but rather your spec's intentions. If you are trying to model the way that different cultures or locales do week counting, then the problem is that some week counting systems do not count weeks the way that ISO 8601 does. For example, many of them count the week that has the 1st day of the year in it (regardless of whether that week has a Thursday inside the year too). When one is using ISO 8601, the first week is the one that contains the first Thursday. It doesn't matter what the first day of the week is in that case. If you want your spec to allow for the other common counting scheme (and my desktop copy of ICU reports 107 locales out of 160 are like this), then my health warning is more correct. Does that explain? |
The 2006 version of OWL-Time was over-simplified, but has been widely used so we are attempting to provide backward compatibility. So the challenge is to get the wording right (though the ontology implementation is probably fine, since it merely requires URIs in strategic places). Will use your wording. Thanks. |
BTW - does ISO 8601 specify Monday as first day of week? Your wording appears to require that. |
Have used a slightly modified version of your text here http://w3c.github.io/sdw/time/#time:week |
Looks good to me. Thanks! |
w3c/i18n-activity#402
http://w3c.github.io/sdw/time/#time:week
This says in part:
Week number rules are not just dependent on the calendar in use, but depends on locale (that is, they are culturally linked). ISO-8601 is a standard, but not every locale counts the first week as the first Thursday container, even using Gregorian calendar.
The text was updated successfully, but these errors were encountered: