Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 87a1d13180af04a03c85ea3da91ce31beab9406f
Ticket: 2010909fffffffffffffffffffffffffffffffff
clock scan fails with %V
User & Date: kennykb on 2008-07-07 01:34:04
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    Originator: NO
    
    The cases that worry me are the ones that might
    be best described as "simultaneously overdetermined
    and underdetermined".  [clock scan] is documented to
    ignore excess fields - even if they are inconsistent.
    "7 juillet 2008 lundi" with format "%d %B %Y %A"
    and -locale fr parses correctly as 2008-07-07 even 
    though it is not a Monday. (This is much easier
    than attempting consistency checks for things like
    RFC2822 dates.)
    
    The issue then is one of determining which rule to
    apply when there are two sets of data, both underdetermined.
    Consider [clock scan "2008-1" -format "%G-%u"]
    That's one of the cases where I can't quite manage to
    figure out The Right Thing.  With your proposal, we
    have two incomplete data items: the year (which should
    then default to 1 January of that year), and the day
    of the week (which should default to Monday of the week
    of the base date).  What ought they to do in combination?
    Should one take precedence (if so, which?), or should this
    be an error, or is there another rule that should apply?
    
    
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. status changed to: "Open"
  5. username: "kennykb"