Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d1c0026ebd1a80d1c6506d46e0fc7cb33b74d8d7
Ticket: 225965ffffffffffffffffffffffffffffffffff
[clock format $date -format "%Y-%W"] fails on w 53
User & Date: olovbergqvist on 2000-12-16 09:51:34
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [clock format [clock scan "12/31/1998"] -format "%Y-%W"] fails. The result is 1998-52, but should be 1998-53. 
    I suspect the same error happens for the date 01/01/2008 resulting in 2008-00. I do not have a calendar for 2008. The Swedish weeknumbering is ruled by the standard (SIS 0 102 12) based on rules from ISO. In short:
    A week number is always correspondant to 7 days.
    Week 1 is the first week of the year that contains 4 days or more of the new year. 
    
  4. foundin changed to: ""
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "olovbergqvist"
  9. subsystem changed to: "48. Number Handling"
  10. title changed to: "[clock format $date -format "%Y-%W"] fails on w 53"
  11. type changed to: "Bug"