Overview
| Artifact ID: | c76709701b3c2413de48ff8acd553b7a4fb47ae043dd8f93213e6941195d27b4 |
|---|---|
| Ticket: | f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
clock scan of leapsecond: wrong result in 8.6 and 9.0 |
| User & Date: | sebres on 2024-11-21 13:27:49 |
Changes
- closer changed to: "nobody"
- icomment:
<blockquote>> Let's try to fool it:<br/> > % clock scan "Sun Jun 30 23:59:60 GMT 2012"<br/> > unable to convert input string: invalid day of week<br/> </blockquote> There are many corner cases where it'd not work, e. g. try "Fri Jun 29 23:59:60 GMT 2012" (shall fail, not a leap second), or where the relative time scanned together with leap second. <blockquote>> The "ACST" timezone is - apparently - unkown to the parser</blockquote> Yes, by TZs scanned from input string it is still a bit inconsistent (let alone they are hardcoded). At some time I prepared a solution for that, removing special coded handling for TZ and considering tzdata instead, just it resulting to many further issues, one of them is https://github.com/sebres/tclclockmod/issues/22#issuecomment-1183083552 I'll try to reopen it later. <blockquote>> Thanks for all your input!</blockquote> You are welcome... Unfortunately, it seemed like you read only half of it. Just kidding...<br/> I'll provide my fix soon, that closes many corner cases, and important one - result of scan remain in same day by leap second (how all OSs do it with the unix-time, therefore this will reflect it more consistently). <blockquote>> I don't think the ISO 8601 standard changes that often. Now we are conformant to the 2022 version.</blockquote> The emphasis was not on ISO-change, but on its hardly possible representation in unix-time. But if we are talking about standards, here is a quote from it: <div style="padding-left:20pt"><i>‘T235960’ represents <b>the final second of a calendar day</b> with a positive leap second in UTC.</i></div> And your implementation, as already said, switches to the next calendar day (and next calendar month or even still worse to next calendar year).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Open"