Skip to content
Tcl Source Code Artifact [53ed7977bc]
Login

Artifact [53ed7977bc]

Artifact 53ed7977bcc5cdba98b7dc48a579aaf21d5d54d0e4e46cd8042956b630f6f7a7:

Ticket change [53ed7977bc] - Ticket [f2b5f89c0d8520ea|f2b5f89c0d] <i>clock scan of leapsecond: wrong result in 8.6 and 9.0</i> status still Open with 3 other changes by sebres on 2024-11-20 20:24:54.
D 2024-11-20T20:24:54.530
J icomment Maybe\sit\sis\snot\sclear,\sso\sfor\sthe\srecord,\sjust\sto\semphasize\sthe\scomplexity\sof\sthe\sproblem\s-\sthe\stime\s"23:59:60",\sas\swell\sas\sthe\sdates\s"31\sJan"\sand\s"30\sJun"\sare\sonly\stimestamps\sin\sUTC,\sin\sother\stime\szones\sthey\sare\scompletely\sdifferent,\sfor\sinstance\sthe\sleap\ssecond\s<b>"Sat\sJun\s30\s23:59:60\sGMT\s2012"</b>\scorresponds\s<b>"Sun\s<b\sstyle="color:red">Jul\s01\s01:59:60</b>\sCEST\s2012"</b>\sand\s<b>"Sat\sJun\s30\s<b\sstyle="color:red">19:59:60</b>\sEDT\s2012"</b>,\sbut\salso\s<b>"Sun\sJul\s01\s<b\sstyle="color:red">09:29:60</b>\sACST\s2012"</b>\sand\sespecially\snice\s<b>"Sun\sJul\s01\s<b\sstyle="color:red">08:44:60</b>\s+0845\s2012"</b>\s(:Australia/Eucla).\sAll\sthis\stimestamps\srepresents\sthe\ssame\sunix\stime\sand\sthe\ssame\sleap\ssecond.\r\n\r\nThis\salso\sexplain\swhy\sthe\susage\sof\s"24:00:00"\sor\s"23:60:00"\sis\snot\spracticable\s(and\sI\snever\ssaw\sthat\sbefore),\sbecause\sit\smakes\ssense\sonly\sfor\s+0000/GMT/UTC\stime\szone,\sfor\sany\sother\szone\s(depending\son\sits\soffset)\sit\smay\sbe\scompletely\s"valid"\stime,\sthat\sdoesn't\sreflect\sthe\sleap.\r\n\r\nAfter\sall\sthe\sapproach\sto\svalidate\sit\sin\sthe\sway\slike\sin\sbranch\sbug-f2b5f89c0d\sis\shardly\spossible,\sbecause\sall\sthe\sscan\stokens\sare\salways\slocal\stime,\sand\sthe\scheck\swould\sbe\s(pseudo)\scorrect\sonly\sfor\sGMT/UTC\sand\swrong\sfor\sany\sother\sTZs.\r\n\r\nI'm\strying\sto\simplement\sthis\sproperly\s(see\smy\snew\sbranch\sbug-f2b5f89c0d-alt-leapsec)\sby\sconsulting\sthe\sleap\sseconds\stable\swith\sconverted\sUTC\stime.
J login sebres
J mimetype text/x-fossil-wiki
K f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
U sebres
Z 56dc5e9a9deecb362e7a90249db3dc8e