<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-21T19:01:16.947
J icomment No\smatter\sformatted\sor\snot,\syour\svariant\sproduces\sa\sresult\swhich\sgoing\sto\sthe\snext\sday,\smonth\sor\seven\syear,\swhat\sis\sdefinitely\swrong.\r\nAccording\sto\sISO\s8601\sthe\sleap\ssecond\sshall\sremain\sin\sthe\ssame\scalendar\sday!\r\nYour\sleap\sseconds\smoves\sto\snext\scalendar\sday,\smonth\sor\seven\syear.\sThis\sis\sneither\sexpected\sresult,\snor\scorrelates\swith\sthe\sstandard.\s\r\n\r\nAll\sthe\stime\sI\stold\syou\sabout\sthe\sproblematic\sor\sits\srepresentation,\sand\syou\signored\sit.\sNow\syou\sjust\stell\s-\sdon't\sbring\sformat\sinto\splay,\sto\sjustify\syour\smistake.\sThe\sproblem\sis\snot\sthe\sformat,\sbut\sthe\sfact\sthat\sthe\sunix-time\syou\sgenerated\sis\sin\sthe\snext\scalendar\sday.\sThat's\sit.\s\r\n\r\nHow\sone\scan\signore\sformat\s(or\swhatever\saction\swith\sresulting\sunix-time),\sif\sit\sis\sa\starget\sof\sconversion?\sYour\sapproach\smay\swork\sonly\sif\ssomeone\swill\scheck\swhether\sthe\sgiven\stime\sis\snot\srejected,\sbut\swould\snot\swork\sif\sthe\sresult\sof\sscan\sused\ssomewhere\sin\sfurther\scalculations.\r\n\r\nImagine:\ssomeone\sneeds\sto\sobtain\sday\sof\sweek,\sweek\sof\syear,\sday,\smonth\sor\syear\sfrom\sthe\sresult\sof\sscan\soperation\s-\severything\sthis\swill\sbe\sincorrect\sfor\sthis\sinput.\r\nAnd,\sagain,\snot\sconform\sto\sthe\sstandard\stoo\sand\sto\sthe\shandling\sof\sthe\sOSs.\r\n\r\nEither\sthis\smust\sbe\sfixed\s(remains\sthe\ssame\ssecond\sthan\s"23:59:59\sUTC",\show\salso\sthe\sOSs\swill\sdo\sby\ssuch\sseconds),\sor\sit\smust\sbe\sreverted\sand\sleap\ssecond\sis\sthen\sbasically\sinvalid\sas\sbefore\sby\sscan\soperations.\r\n\r\nAnd\syou\scontinue\sto\sprefer\sa\sfalse\sresult\sto\sno\sresult.
J login sebres
J mimetype text/x-fossil-wiki
K f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
U sebres
Z fd6e80eb75e4ee5887bd20046b38995c