Skip to content
Tcl Source Code Artifact [8c3afb2a96]
Login

Artifact [8c3afb2a96]

Artifact 8c3afb2a9621582544556b3e8d962ab5d44808cd89da855cce8f96a86c71a43e:

Ticket change [8c3afb2a96] - 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 pooryorick on 2024-11-22 08:14:47.
D 2024-11-22T08:14:47.142
J icomment Nice\spatch.\s\sHowever,\sthis\smight\sstill\sbe\sintroducing\san\sextra\scomplexity\sfor\r\nno\sgood\sreason.\s\sIf\sa\sscript\sis\susing\s<code>clock\sscan</code>\swith\s-validate\r\nin\sorder\sto\svalidate\sa\stime\srepresentation,\sand\safter\svalidation\sstores\sthe\r\noriginal\srepresentation\sinto\sa\spersistent\sdatabase,\sall\sother\sconsumers\sof\sthe\r\ndata\smust\sthen\sbe\sprepared\sto\sdeal\swith\sleap\ssecond\srepresentations.\sSqlite,\r\nfor\sexample,\sis\snot:\r\n\r\n<code><verbatim>\r\nsqlite>\sselect\sdate('2012-06-30\s23:59:00');\r\n2012-06-30\r\nsqlite>\sselect\sdate('2012-06-30\s23:59:60');\r\n\r\nsqlite>\r\n</verbatim></code>\r\n\r\nSo\sin\sthis\scase\sanother\sconsumer\smust\sbe\sprepared\sfor\sa\stime\srepresentation\r\nthat\swas\salready\svalidated\sby\sTcl\sto\sevaluate\sto\san\sempty\sstring\sin\san\sSQL\r\nscript.\s\sThis\sseems\slike\sa\sfootgun.\s\sSebres,\sdespite\sthe\stime\sthat\syou\sinvested\r\nin\spreparing\sthis\spatch,\sis\sit\sreally\sa\sgood\sidea?\s\sIf\sthe\sanswer\sis\syes,\sand\r\nthis\sis\sgoing\sto\sgo\sinto\sTcl,\sthen\sgiven\sthat\smost\sapplications\sdon't\sneed\sand\r\ndon't\swant\sto\sdeal\swith\sleap\sseconds,\sshould\san\soption\slike\r\n<code>-leapseconds</code>\sbe\sadded\sto\sactivate\sthis\sbehaviour?\r\n\r\nIs\sthe\snew\soption\s<code>-strict-leap-sec</code>\sreally\snecessary?\s\sGiven\sthat\r\nparsing\sleap\ssecond\srepresentations\sis\ssomewhat\sniche,\smaybe\sanyone\sthat\swants\r\nthat\sfunctionality\sshould\sjust\saccept\sthe\scost\sof\scalculating\sstrict\sleap\r\nseconds.\r\n\r\nI\sstill\sthink\sthat\sleap\sseconds\sare\ssomething\sfor\sa\ssystem\sthat\scalculates\r\nclock\stime\sto\sbe\saware\sof,\sbut\snot\sto\srepresent.
J login pooryorick
J mimetype text/x-fossil-wiki
K f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
U pooryorick
Z 70176d31e050907202dec44a45b52729