Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 12c3a2b47d87379297983e48d62efee672738ac0470e9f00524ea23c09d57c39
Ticket: cd25761979da7be2861f124c41956cb0f9945ca4
clock command - "now" vs "-now"
User & Date: sbron on 2024-07-27 19:56:44
Changes

  1. icomment:
    I have to disagree. It doesn't make sense. The `[clock format]` command takes one argument indicating which time value to format. Allowing some symbolic name to serve as a shorthand for the frequently used value `[clock seconds]` is useful. But that symbolic name still represents a value. So it should just be a simple symbolic name, like "now". It shouldn't be a "quasi" option that needs to be in a specific position and then disallows providing the value argument. (The statement that *value* becomes optional is not true. If both are provided, an error is thrown.)
    
    Why introduce such a complicated set of rules when it could suffice to say that "the word 'now' may be used for *timeVal* to mean the current time".
    
    So I definitely would say that "now" should at least be accepted in all the places where "-now" has recently been introduced. I also think that "-now" should be deprecated as soon as possible, because we should get rid of things that are not logical. In my opinion, "-now" deserves that qualification.
    
  2. login: "sbron"
  3. mimetype: "text/x-markdown"