Overview
| Artifact ID: | 8c25d3bf85305efb6a2c62b8c2c9f25cf52acd73 |
|---|---|
| Ticket: | 225965ffffffffffffffffffffffffffffffffff
[clock format $date -format "%Y-%W"] fails on w 53 |
| User & Date: | olovbergqvist on 2000-12-21 06:11:41 |
Changes
- icomment:
Hello, It seems that the ISP standard is ISO 8601. ANSI does not seems to include a standard. Your follow-up question. Another way to put the rule is: The year shift week is given to the year on which the majority of it's days belongs. So if the four days of that week belongs to the old year it will be number 53, if 52 is already taken. http://www.its.se/ITS/datum-m-m/iso8601.pdf http://www.its.se/ITS/datum-m-m/kent-02.htm On MSDN-Sweden this article tells how to fix that Microsoft SQL Server cannot tell the correct week number through it's function DatePart(). This is because Microsoft SQL Server doesn'tknow which is week 1 of the year. A solution exists. ... (swedish standard) Which means that if new years eve occurs on Mondat-Wednesday that week is regarded number 1 of the new year. A code example is given: http://www.microsoft.com/sverige/msdn/knowledge/tips/tips000419.asp
- login: "olovbergqvist"
- mimetype: "text/plain"
- username: "olovbergqvist"