<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-21T17:19:16.010
J icomment >\sNo,\sit\sdoesn't\sdo\sthat\sany\smore.\sI\sfound\sa\ssolution\sfor\sthat.<br/>\r\n>\swithout\sjumping\sto\sthe\snext\sday\sany\smore.\r\n\r\nNo,\syou\sdid\snot:\r\n\r\n```\r\n%\sclock\sformat\s[clock\sscan\s"Jun\s30\s23:59:60\sGMT\s2012"]\s-gmt\s1\r\nSun\sJul\s01\s00:00:00\sGMT\s2012\r\n%\sclock\sformat\s[clock\sscan\s"Jul\s01\s01:59:60\sCEST\s2012"]\s-gmt\s1\r\nSun\sJul\s01\s00:00:00\sGMT\s2012\r\n\r\n%\sclock\sformat\s[clock\sscan\s"Jan\s01\s00:59:60\sCET\s2017"\s-gmt\s1]\s-gmt\s1\r\nSun\sJan\s01\s00:00:00\sGMT\s2017\r\n%\sclock\sformat\s[clock\sscan\s"Dec\s31\s23:59:60\sGMT\s2016"\s-gmt\s1]\s-gmt\s1\r\nSun\sJan\s01\s00:00:00\sGMT\s2017\r\n```\r\nthis\sis\sdefinitely\snext\sday\sand\smonth\s(and\snext\syear\sfor\sthe\slatter).\r\n\r\n>\s%\sclock\sscan\s"Fri\sJun\s29\s23:59:60\sGMT\s2012"<br/>\r\n>\sunable\sto\sconvert\sinput\sstring:\sinvalid\stime<br/>\r\n>\sAs\sexpected\r\n\r\nWell,\srelated\syour\scode,\syou\s[allowed\sonly\sJan\s01\sand\sJul\s01](./file?name=generic/tclClock.c&ci=d3744ffffc620ecc&ln=3842-3845)...\sThen\sit'd\scause\sanother\sissues,\sI\sguess...<br/>\r\nAnd\show\sabout\sthis\s(what\sshall\sfail\sin\sGMT,\ssince\sit\sis\snot\sleap\ssec\sthere):\r\n```\r\n%\sclock\sscan\s"Jan\s01\s23:59:60\sGMT\s2013"\r\n1357084800\r\n```\r\nThe\smajor\sissue\sis\sthat\sthe\svalidation\shappens\sin\s2\sstages,\sone\sbefore\slocal\stime\sin\sUTC\sconversion\sand\sanother\safter.\sAnd\sthe\sobtaining\sof\snew\stokens\shappens\son\sdemand,\sdepending\son\sseveral\sparameters\s(like\s`CLF_ASSEMBLE_*`)\sand\sinput\stokens\s(like\s`CLF_JULIANDAY`),\swhich\smay\sbe\smissed\sby\ssome\sconstellations\sand\sthe\scheck\sas\syou\sorganized\sit\smay\sbe\swrong.\sEspecially\sif\syou'd\sfix\sabove-mentioned\sissue\swith\sswitch\sto\snext\sday/month/year.
J login sebres
J mimetype text/x-markdown
K f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
U sebres
Z 7a40c3be7aab2ec4d6746774e8b8378b