Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bda83193efa44507ccc975382d1b4f1b0617518f
Ticket: 1988794fffffffffffffffffffffffffffffffff
clock scan parse errors in summertime
User & Date: kennykb on 2008-06-10 08:39:56
Changes

  1. closedate changed to: "2008-06-10T01:39:56"
  2. closer changed to: "kennykb"
  3. icomment:
    Logged In: YES 
    user_id=99768
    Originator: NO
    
    I'm repeating your tests in 8.5, and assuming that you are in Germany,
    so I'm using TCL_TZ=:Europe/Berlin and a de_de locale.
    
    In 8.5.2, your first ten tests all function as you expect.
    
    The next-to-last test appears to exercise a bug in your testing.
    You are scanning for 22 hours 59 minutes 59 seconds from the
    start date of 26 October 2008:
    
    % expr 31+29+31+30+31+30+31+31+30+26+ 8*365 + 1
    3221
    % clock format [clock scan "3221 days" -base 946681200] -format {%X %x} -locale de_de
    00:00:00 26.10.2008
    
    To this quantity you are adding 22 hours 59 minutes 59 seconds, and apparently expecting
    a result of 22:59:59 on the same day. 
    
    % clock format [clock scan "3221 days 22 hours 59 minutes 59 seconds" -base 946681200] -format {%X %Z %x} -locale de_de
    21:59:59 CET 26.10.2008
    
    But Summer Time will have ended at 01:00 UTC on that day, according to
    
    http://eur-lex.europa.eu/smartapi/cgi/sga_doc?smartapi!celexapi!prod!CELEXnumdoc&lg=EN&numdoc=32000L0084&model=guichett
    
    So 22 hours 59 minutes from the given time is 21:59:59 by the clock.
    
    Had you tested 2 hours 59 minutes 59 seconds (2 hours instead of 22), you would have indeed found the time at which Summer Time ends:
    
    % clock format [clock scan "3221 days 2 hours 59 minutes 59 seconds" -base 946681200] -format {%X %Z %x} -locale de_de
    02:59:59 CEST 26.10.2008
    (200002852) 29 % clock format [clock scan "3221 days 3 hours" -base 946681200] -format {%X %Z %x} -locale de_de
    02:00:00 CET 26.10.2008
    
    Since the first ten of your tests function correctly in the current release, while the last two appear to reflect a misunderstanding of the time that the EU clocks change, I'm closing this bug.
    
    
  4. login: "kennykb"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Pending"
  8. username: "kennykb"