Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e0cc1062356a8015d0595abf7c8a991537b5c2bd99b21bdfe40977fe5bc01256
Ticket: a1bd37b7198f7bf51e8f1f554435045bf6cc8b68
clock (free)scan of ISO 8601 timestamp with literal T behaves strange
User & Date: sebres on 2020-05-25 10:11:40
Changes

  1. icomment:
    <blockquote><i>> Citing the "FREE FORM SCAN" section in clock(n) from core-8-6-branch</i></blockquote>
    
    What you're trying to tell me with?
    
    I wrote already that despite it is documented, one can not say that the behavior by format "YYYY-MM-DDThh:mm:ss" (that is also described as part of ISO 8601) is correct.
    
    There are only two possibility as I suggested above, either to accept it as ISO (to extend the format), or to restrict TZ recognition rules (like word boundaries), so scan would reject it as invalid input.
    
    
    <blockquote><i>> it seems to be some undefined behavior you're observing here regarding the presence of the -gmt option.</i></blockquote>
    
    No, gmt option is only to illustrate that normally no TZ conversions are used by format and scan (and it is ignored if TZ specified in input string). And it has basically nothing with this bug.
    As already said the free scan considering T literal as a military time zone.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"