Skip to content
Tcl Source Code Artifact [3746fd5d0e]
Login

Artifact [3746fd5d0e]

Artifact 3746fd5d0eea5d4f4bf782ffb2bbb568ce0aa614779210a262e383ba18cd6e05:

Ticket change [3746fd5d0e] - 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-22 12:37:34.
D 2024-11-22T12:37:34.959
J icomment >\sIf\sa\sscript\sis\susing\sclock\sscan\swith\s-validate\sin\sorder\sto\svalidate\sa\stime\srepresentation,\sand\safter\svalidation\sstores\sthe\soriginal\srepresentation\sinto\sa\spersistent\sdatabase\r\n\r\nArtificial\sscenario,\sIMHO,\sbecause\snobody\swould\sthen\ssupply\soriginal\stimestamps\sin\sthis\scase,\srather\sresulting\sunix-time\s(valid)\sor\ssome\sformatted\stokens\s(e.\sg.\sin\scase\sof\ssqlite\sastronomic\sJD\swith\stime\sfraction\slike\s%Ej).\s\r\nBut\sif\syes,\sit\sis\sthe\stroubles\sof\srelated\ssoftware\s(you'd\snot\sreally\sexpect\sthat\severything\sworks\severywhere\sequally).\r\n\r\n>\sIs\sthe\snew\soption\s-strict-leap-sec\sreally\snecessary?\s\r\n\r\nNo.\sI\swanted\sjust\sto\sprovide\spossibility\sto\smatch\sleap\sseconds\sas\sprecise\sas\spossible,\swith\s-strict-leap-sec\s0\s(default)\sit\swill\salso\saccept\sother\spotentially\sleap\sseconds\sthat\sare\snot\sin\sthe\slist\s(what\sis\sbad\sin\ssense\sof\saccuracy,\sbut\sgood\sfor\savoidance\sof\serror\sby\smissing\siana-db\supdate).\r\n\r\n>\sI\sstill\sthink\sthat\sleap\sseconds\sare\ssomething\sfor\sa\ssystem\sthat\scalculates\sclock\stime\sto\sbe\saware\sof,\sbut\snot\sto\srepresent.\s\r\n\r\nYes.\sMoreover,\syou\scannot\srepresent\sit\swith\sunix-time\s-\sin\smy\sbranch\sstring\sinputs\sT235960\sand\sT235959\sproduce\sthe\ssame\sresult\sby\sscan,\sand\sit\sis\simpossible\sto\sproduce\sT235960\swith\sthe\sformat\sback\s(can\sonly\sgenerate\sT235959).\r\n\r\n>\sThat\smeans\sthe\scurrent\slist\sof\s27\sentries\sis\sfinal\r\n\r\nFluctuations\sby\sEarth's\srotation\sare\shardly\spredictable,\sso\sone\scan\sonly\ssays\sabout\sprobabilities.\sYes,\sthe\sEarth\sspinning\snow\sfaster\sthan\sat\sany\stime\sin\sthe\slast\s50\syears,\sbut\sit\scan\schange\svery\sfast\still\s2035.\r\n\r\n>\sDo\swe\sreally\sneed\sto\sgenerate\sthis\slist\swith\sTcl-code,\sand\sthen\simport\sit?\sWouldn't\sa\ssimple\sstatic\sarray\sin\sC\ssuffice?\s\r\n\r\nI'd\sprefer\sto\shave\severything\sfrom\siana-db\sin\sthe\ssame\splace,\sand\sload\sthis\slist\son\sdemand\s(like\sTZ).\sAt\sleast\still\s2035,\sas\slong\sas\sit\sis\sstill\sdynamic.\r\n\r\n>\sI\sreally\sthink\sit\sdoesn't\sneed\sto\sbe\smuch\smore\scomplicated\sthan\sthat.\r\n\r\nI\sreally\swant\sto\semphasize\sthat\sif\syou\sdecided\sto\ssupport\sthe\sleap\sseconds\sand\sconsider\sthe\sscan\sas\svalid,\syou\shave\sto\sproduce\scorrect\sresult.\r\nAnd\sthe\stimestamp\s"2012-06-30\s23:59:60\sUTC"\sin\sunix-time\sis\sthen\s1341100799\sand\snot\s1341100800\s(what\swould\slie\schronologically\sin\sthe\snext\scalendar\sday).<br/>\r\nAnd\sI\sdon't\sstop\sto\sask\syou,\swhy\syou\sare\sin\smode\sto\scontinue\sto\sprefer\sa\sfalse\sresult\sto\sno\sresult\s(or\seven\sto\sright\sresult,\slike\sin\smy\sbranch)?
J login sebres
J mimetype text/x-markdown
K f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
U sebres
Z e6b25a8610ccd2b7a02f6ac2ecef78d9