Skip to content
Tcl Source Code Artifact [8c25d3bf85]
Login

Artifact [8c25d3bf85]

Artifact 8c25d3bf85305efb6a2c62b8c2c9f25cf52acd73:

Ticket change [8c25d3bf85] - Ticket [225965ffffffffff|225965ffff] <i>[clock format $date -format &quot;%Y-%W&quot;] fails on w 53</i> status still Open with 4 other changes by olovbergqvist on 2000-12-21 06:11:41.
D 2000-12-21T06:11:41
J icomment Hello,\nIt\sseems\sthat\sthe\sISP\sstandard\sis\sISO\s8601.\nANSI\sdoes\snot\sseems\sto\sinclude\sa\sstandard.\nYour\sfollow-up\squestion.\sAnother\sway\sto\sput\sthe\srule\sis:\nThe\syear\sshift\sweek\sis\sgiven\sto\sthe\syear\son\swhich\sthe\smajority\sof\sit's\sdays\sbelongs.\nSo\sif\sthe\sfour\sdays\sof\sthat\sweek\sbelongs\sto\sthe\sold\syear\sit\swill\sbe\snumber\s53,\sif\s52\sis\salready\staken.\nhttp://www.its.se/ITS/datum-m-m/iso8601.pdf\nhttp://www.its.se/ITS/datum-m-m/kent-02.htm\n\n\nOn\sMSDN-Sweden\sthis\sarticle\stells\show\sto\sfix\sthat\s\sMicrosoft\sSQL\sServer\scannot\stell\sthe\scorrect\sweek\snumber\sthrough\sit's\sfunction\sDatePart().\sThis\sis\sbecause\sMicrosoft\sSQL\sServer\sdoesn'tknow\swhich\sis\sweek\s1\sof\sthe\syear.\sA\ssolution\sexists.\s...\s(swedish\sstandard)\sWhich\smeans\sthat\sif\snew\syears\seve\soccurs\son\sMondat-Wednesday\sthat\sweek\sis\sregarded\snumber\s1\sof\sthe\snew\syear.\sA\scode\sexample\sis\sgiven:\nhttp://www.microsoft.com/sverige/msdn/knowledge/tips/tips000419.asp\n
J login olovbergqvist
J mimetype text/plain
J username olovbergqvist
K 225965ffffffffffffffffffffffffffffffffff
U olovbergqvist
Z 9086a51fc69e7037da97eb4e3574c81f