Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a384dc4f16c3f67bf78d811c6ee9504c004a18dc827d95615a0985288ae68acc
Ticket: f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
clock scan of leapsecond: wrong result in 8.6 and 9.0
User & Date: jan.nijtmans on 2024-11-22 10:27:44
Changes

  1. icomment:
    In 2035, the current leap-second system will be abandoned, maybe replace by leap minutes. Until then no positive leap-seconds are expected, only a negative leap-second. That means the current list of 27 entries is final: there won't be more of them any more. Do we really need to generate this list with Tcl-code, and then import it? Wouldn't a simple static array in C suffice?
    
    It also means that the risk Nathan is describing is non-existent: Leap seconds only existed between 1972 and 2016. For current timestamps they are illegal already. What's the risk? Tcl 8.6 already accepted leap-seconds (even though the POSIX timestamp was wrong, which is now corrected).
    
    I now added a year-check to the code in core-8-branch and trunk. I really think it doesn't need to be much more complicated than that.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"