Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 33bf1edd5c002585ca20158e12aff51a9bed0080308d2b9506d556aef8e53a70
Ticket: 73384a82adedf4a7986301cfad8ae27017f68ec0
clock scan calendaric calculation error
User & Date: anonymous on 2018-04-16 15:57:59
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    foreach part {yesterday today now tomorrow} {
        puts stdout "[clock format [clock scan "${part} 3 months ago" ] -format {%Y.%m.%d}] : ${part} 3 months ago"
    }
    
    2018.01.17 : yesterday 3 months ago    !!! FALSE that's tommorrow 3 months ago
    2018.01.16 : today 3 months ago
    2018.01.16 : now 3 months ago
    2018.01.15 : tomorrow 3 months ago     !!! FALSE that's yesterday 3 months ago
    
    Could it be yesterday and tomorrow are mixed in calendar calculations?
    Unsing '-3 months' instead of '3 months ago' gives correct results!
    
    foreach part {yesterday today now tomorrow} {
        puts stdout "[clock format [clock scan "${part} -3 months"] -format {%Y.%m.%d}] : ${part} -3 months"
    }
    
    2018.01.15 : yesterday -3 months
    2018.01.16 : today 3 months
    2018.01.16 : now 3 months
    2018.01.17 : tomorrow -3 months
    
  5. foundin changed to: "8.4.12, 8.4.20 , 8.6.5"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "3c4d6f6b4a3d4195f9f74c004b27f16e8643661e"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "clock scan calendaric calculation error"
  16. type changed to: "Bug"