Skip to content
Tcl Source Code History Of Ticket 1545823
Login

History Of Ticket 1545823

Artifacts Associated With Ticket 1545823

  1. Ticket change [5f5460fceb] (rid 115801) by ctasada on 2006-08-24 09:17:22:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi guys,
      
      Playing with the clock command using 8.5a4 I've found a
      new bug.
      
      Here is the example:
      
      (Bin) 7 % set timein [clock seconds]
      1156410538
      (Bin) 8 % set timeout [clock scan "1 hour" -base $timein]
      1156414138
      (Bin) 9 % set timeout [clock scan "60 minutes" -base
      $timein]
      1156414138
      (Bin) 10 % set timeout [clock scan "24 hour" -base $timein]
      1156496938
      (Bin) 11 % set timeout [clock scan "1440 minutes" -base
      $timein]
      1156496938
      (Bin) 12 % set timeout [clock scan "1 day" -base $timein]
      1156456800
      
      As you can see, the answers for "1 hour" and "60
      minutes" are the same, and the answers for "24 hour"
      and "1440 minutes" are also ok, but the "1 day" is
      different. Why?
      And not, I'm not crossing any "daylight savings time
      boundary"
      
      Cheers,
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "ctasada"
    10. subsystem initialized to: "06. Time Measurement"
    11. title initialized to: "Clock scan "1 day" is wrong"
    12. type initialized to: "Bug"
  2. Ticket change [709e79068a] (rid 100515) by wildcard_25 on 2006-08-24 17:04:07:

    1. icomment:
      Logged In: YES 
      user_id=596509
      
      It works as documented.
      
      "If a date or day is specified, and no absolute or 
      relative time is given, midnight is used."
      
      (Tcl85) 1 % clock scan "1 day"
      1156428000
      (Tcl85) 2 % clock scan "24 hours"
      1156499468
      (Tcl85) 3 % clock add [clock seconds] 24 hours
      1156499480
      (Tcl85) 4 % clock add [clock seconds] 1 day
      1156499494
      
      
    2. login: "wildcard_25"
    3. mimetype: "text/plain"
    4. username: "wildcard_25"
  3. Ticket change [ea5eb4786f] (rid 103367) by ctasada on 2006-08-24 17:21:59:

    1. icomment:
      Logged In: YES 
      user_id=340696
      
      Probably I'm misunderstanding the documentation but how can
      I  specify an absolute or relative time in [clock scan "1
      day" -base $timein]?
      
      Anyway I missed this line :(
      
      
      
    2. login: "ctasada"
    3. mimetype: "text/plain"
    4. username: "ctasada"
  4. Ticket change [3a74c4c8f3] (rid 112565) by wildcard_25 on 2006-08-24 17:46:21:

    1. icomment:
      Logged In: YES 
      user_id=596509
      
      "1 hour" is a relative time.
      "08:00 PM" is absolute.
      
      As [clock scan "1 day"] has no hours, minutes or seconds 
      specified, it uses midnight as the hour of day that is 1 
      day from now.
      
      If I wanted to add "x days" to the current time then I 
      would use [clock add].
      
      
    2. login: "wildcard_25"
    3. mimetype: "text/plain"
    4. username: "wildcard_25"
  5. Ticket change [1f022e6a74] (rid 91074) by ctasada on 2006-08-24 17:57:27:

    1. closedate changed to: "2006-08-24T10:57:27"
    2. closer changed to: "ctasada"
    3. icomment:
      Logged In: YES 
      user_id=340696
      
      Ooook, I completely misunderstood the documentation.
      
      Thanks a lot. I close the bug and mark it as invalid :)
      
      
    4. login: "ctasada"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "ctasada"