Skip to content
Tcl Source Code History Of Ticket 500389ffffffffff
Login

History Of Ticket 500389ffffffffff

Artifacts Associated With Ticket 500389ffffffffff

  1. Ticket change [0b8b2c4887] (rid 114013) by nobody on 2002-01-07 13:30:29:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The clock format command prints incorrect weeks
      around the beginning of 2002.
      
      In week 01/2002 it printed 53/2001 and now
      in the week 02/2001 it prints week 01.
      
      Example:
      
      
      hesjhe@hesws6:~ $ /kopt/tcltk/bin/tclsh8.3 
      % clock seconds
      1010410133
      % clock format 1010410133 -format %W
      01
      % clock format 1010410133
      Mon Jan 07 15:28:53 EET 2002
      % 
      
      The bug seems to be platform and minor release
      independent, I can reproduce it with:
      -RedHat Linux 7.2, tcl patchlevel 8.3.1
      -W2K, ActiveTCL, tcl patchlevel 8.3.4
      -SGI Irix 5.3, tcl patchlevel 8.3.4
      -HP-UX 10.20, tcl patchlevel 8.3.2
      
      
    4. foundin initialized to: "obsolete: 8.3.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "clock format -W incorrect results"
    11. type initialized to: "Bug"
  2. Ticket change [9cbd4a0794] (rid 96197) by dkf on 2002-01-07 20:56:37:

    1. assignee changed to: "kennykb"
    2. subsystem changed to: "06. Time Measurement"
  3. Ticket change [cfb7936f6c] (rid 113032) by pspjuth on 2002-01-07 22:37:15:

    1. icomment:
      Logged In: YES 
      user_id=98900
      
      It seems the submitter is asking for ISO weeks, which %W does not give.
      A glance in compat/strftime.c shows an undocumented %V that gives ISO
      weeks. That implementation is slightly buggy though, and the same bug
      can be found in strftime on SunOS 5.6.
      
      strftime on Linux 2.4.7 and SunOS 5.8 are ok though.
      
      Maybe %V should be fixed and officially supported?
      
      
      
    2. login: "pspjuth"
    3. mimetype: "text/plain"
    4. username: "pspjuth"
  4. Ticket change [70556a26aa] (rid 100460) by kennykb on 2002-01-07 22:41:10:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      %V is indeed documented in 8.4.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  5. Ticket change [717127b2ac] (rid 100673) by nobody on 2002-01-07 22:57:03:

    1. icomment:
      Logged In: NO 
      
      Hi and thank you for an extremely quick solution to 
      my problem! I cannot be amazed enough about how well the
      open source development process works...
      
      Anyway, I checked the %V option with the platforms
      I have access to. It works in Linux, HPUX10.20 and
      W2K but it fails in Irix 5.3. Since my application
      runs on Linux my problem is solved, but I think in general
      it would be a good idea to support it generally in
      a portable way. Unfortunately, I cannot volunteer to do it...
      
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  6. Ticket change [0b186f5a57] (rid 113923) by kennykb on 2002-01-07 23:08:05:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      If I remember correctly, the 8.4 configuration is changed so that the
      native strftime (which is indeed buggy on Irix 5.3) is never used, and
      the one from the 'compat/' library is linked instead, but I'm leaving this
      bug open until I can check it out.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  7. Ticket change [f585989809] (rid 130122) by pspjuth on 2002-01-07 23:13:52:

    1. icomment:
      Logged In: YES 
      user_id=98900
      
      Indeed it is documented.
      This time looking at the latest files I see
      that the %V implementation is still buggy
      in compat/strftime.c. Maybe that should be a
      separate bug report?
      
      Bug Example:
      2000-01-01 should give week 52, not 53.
      
      Since at least Linux has a correct strftime I guess
      it would be an easy fix for someone with those
      sources at hand.
      
      
      
    2. login: "pspjuth"
    3. mimetype: "text/plain"
    4. username: "pspjuth"
  8. Ticket change [de13841d60] (rid 114785) by kennykb on 2002-01-12 07:59:22:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      On the CVS head of the tcllib project, there is now a 'modules/calendar' directory that includes Tcl functions 
      for converting among several calendar representations -- including ISO fiscal year and week.  Please check 
      it out!
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  9. Ticket change [37083403b5] (rid 107206) by kennykb on 2004-03-06 00:33:05:

    1. closedate changed to: "2004-03-05T17:33:05"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Duplicate of 500285
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. username: "kennykb"
  10. Ticket change [f51c694fcb] (rid 130050) by kennykb on 2004-03-06 00:33:35:

    1. status changed to: "Open"
    2. title changed to: "clock format - wrong ISO8601 week number"
  11. Ticket change [ab98485ffb] (rid 101143) by kennykb on 2004-03-06 00:34:22:

    1. closedate changed to: "2004-03-05T17:34:22"
    2. closer changed to: "kennykb"
    3. status changed to: "Closed"
  12. Ticket change [4a0dff49fe] (rid 126470) by kennykb on 2004-05-19 03:40:49:

    1. resolution changed to: "Remind"
    2. status changed to: "Open"
  13. Ticket change [e3504b56f0] (rid 87776) by kennykb on 2004-05-19 04:53:46:

    1. closedate changed to: "2004-05-18T21:53:46"
    2. closer changed to: "kennykb"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"