<i>clock scan of leapsecond: wrong result in 8.6 and 9.0</i> status still Open with 3 other changes
by
.
D 2024-11-15T11:23:10.174
J icomment The\sproblem\sis\swe\scannot\sresolve\sthat\s-\swhat\syou\sconstantly\sforget\sis\sthat\s[clock\sscan]\sconverts\sstring\sinput\sto\sunix\stime,\swhich\sin\sturn\ssimply\sdoesn't\sknow\sa\sleap\ssecond\sat\sall.\sIt\swas\ssolved\sin\sa\spragmatic\sway\sby\sprogrammers\sand\sa\sleap\ssecond\sis\ssimply\sa\stime\sadjustment\sor\selse\sa\sshort\stime\sdrift\s(one\ssecond\sin\syear\slasts\slonger\sor\sswitches\slater).\sNeither\sit\scan\sbe\srepresented\ssomehow,\snor\sit\sis\sexpected\sto\sbe\sconverted\sfrom\sinput,\sin\sno\sone\slanguage\son\searth.\sMoreover\sit'd\sbe\smathematically\swrong\s(and\syes\sclock\sscan\sand\sclock\sformat\sare\sreverse\sfunctions\sin\sthis\sregard)...\sSo\slets\salso\sfollow\sthis\spragmatically.\r\n\r\nThe\scomparison\swith\s140km/h\sdoesn't\smatch\stoo,\sbecause\sit\srepresents\snot\sonly\sthe\sspeed,\sbut\salso\sthe\sdistance\sone\swould\sreach\swith\sthat\sspeed,\swhat\sis\sa\smathematically\scorrect\srepresentation\sin\sany\sdirection.\sLeap\ssecond\sis\snot\ssuch\sthing,\sat\sleast\sin\scurrent\sstate\sof\sthe\sart,\show\sit\sis\simplemented\sin\starget\ssystems\s(OS)\sfor\sTcl.\s\r\n\r\nRegarding\sISO\s8601:\swell,\s0\sis\salso\savailable\snumber\sin\smath,\sbut\syou'd\snot\sexpect\sthat\sTcl\swill\sstart\sto\ssupport\sdivision\sby\szero.\r\n\r\nAnd\sthe\sfundamental\squestion,\sIMHO,\sis\show\syou'd\srepresent\sthis\sleap\ssecond\sin\sa\sunit\sof\smeasure\sthat\snever\shas\sthis\sability\s-\sunix\stime\salways\sreflects\s60\sseconds\sper\sminute,\s3600\sper\shour,\s86400\sper\sday.\sUnexceptionally.\sIt\sknows\sleap\sday\s(in\sa\sleap\syears),\sbut\snot\san\sextra\ssecond.\r\n\r\nRegarding\sthe\smigration\snotes\s(you\smentioned\ssomewhere),\sone\sdoesn't\seven\sneed\sto\smention\sit\sin,\sbecause\sit\snever\sworked\scorrectly\sbefore\s(so\svery\sprobably\snever\sused).\sBut\sperhaps\sit\sis\ssomething\sfor\sthe\sdocumentation.\sHowever\smigration\snotes\sshall\scontain\sthe\sswitch\sof\svalidation\smode,\sso\sthis\sis\sfully\senough\sin\smy\sopinion.\r\n\r\nIn\scase\sof\spossible\sfuture\simprovement,\sthe\sthings\scan\ssurely\schange,\sbut\sthen\sclock\sfacilities\sneed\sto\sconsider\sdifferent\s"base"\svalue\sthan\sseconds\ssince\sepoch,\se.\sg.\ssomething\slike\sa\snew\sclock-object\scontaining\sinteger\sor\stuple\srepresentation,\swhich\scan\sconsider\sleap\ssecond\sfully\sand\svalue\sgoes\s"incremented"\sby\sleap\ssecond.\sSomething\slike\snew\soption,\se.g.\s`-ut\s1`\sor\swhatever,\sthat\swould\sexpect\sdifferent\sbase\sformat\sfor\s[clock\sadd]\sand\s[clock\sformat]\sas\swell\sas\sdifferent\sreturn\svalue\sby\s[clock\sscan].\r\n\r\nHowever,\show\smany\sdocumentations\ssay,\ssuch\sfeature\sis\squestionable...\sHere\sis\sPostgreSQLs\spoint\sof\sview,\sfor\sexample:\s<i>There's\sbeen\svery\slittle\suser\sdemand\sfor\sleap-second-aware\sdate\sarithmetic,\sand\sthe\sdifficulties\swith\sextrapolating\ssuch\sarithmetic\sinto\sthe\sfuture\smean\sthat\swe're\snot\slikely\sever\sto\stry\sto\ssupport\sit.</i>
J login sebres
J mimetype text/x-markdown
K f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
U sebres
Z caaaacec8944a67a5eae8ecf84a6a534