<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-14T19:22:32.743
J icomment Nope,\sthe\sfix\sin\sthat\sway\swill\sbe\sincorrect:\r\n\r\n1.\sleap\sseconds\sare\saffecting\sboth,\sthe\sPOSIX\stime\sand\sits\sstring\srepresentation\s(textual\sform)\sequally,\sthe\sfix\s(in\sthis\sway)\swould\sonly\saffect\sthe\slatter\sand\sincorrectly\scorrelate\swith\sthe\sformer,\swhat\ssimply\smakes\sthe\stimestamps\s`2016-12-31\s23:59:60`\sand\s`2017-01-01\s00:00:00`\scompletely\sequivalent,\swhat\sin\sturn\shas\snothing\sto\sdo\swith\sthe\sleap\ssecond.\sIt\slooks\sto\sme\slike\s(faulty)\sanalogy\sbetween\sleap\shour\sand\sDST,\swhat\smathematically\sseen\sis\sdefinitely\swrong.\sMoreover\sby\sa\sscan\syou'd\snever\sget\stime\s`23:59:60`\sback,\sso\sit'd\sintroduce\sadditional\sinconsistency:\r\n\s\s```\r\n\s\s%\sclock\sscan\s"2016-12-31\s23:59:60"\s-gmt\s1\s-valid\s0\r\n\s\s1483228800\r\n\s\s%\sclock\sscan\s"2017-01-01\s00:00:00"\s-gmt\s1\r\n\s\s1483228800\r\n\s\s%\sclock\sformat\s[clock\sscan\s"2016-12-31\s23:59:60"\s-gmt\s1\s-valid\s0]\s-gmt\s1\s-format\s"%Y-%m-%d\s%T"\r\n\s\s2017-01-01\s00:00:00\r\n\s\s```\r\n2.\stherefore\sa\scorrect\simplementation\sshall\sdefinitely\sconsider\sleap\sseacond\slike\sa\sleap\syear,\showever\sin\sopposite\sto\sit,\sto\scompute\sthe\stextual\srepresentation\sor\selapsed\stime\sin\sseconds\sbetween\stwo\sgiven\sUTC\sdates,\sit'd\srequire\sthe\sconsultation\sof\sa\stable\sof\sleap\sseconds\s(it\sis\snot\snearly\smathematical\slike\sthe\sleap\syears);\r\n3.\smany\sclocks\simplement\sleap\sseconds\sin\sdifferent\smanner:\ssome\signore\sthem\scompletely\s(e.\sg.\saccept\spossible\stime\sdrift\sby\stime\sadjustment),\ssome\suse\sdifferent\sadjustments\sprocedures,\se.\sg.\sleap\sseconds\sin\sUnix\stime\sare\scommonly\simplemented\sby\srepeating\s23:59:59\s(rarely\sby\sadding\sthe\stime-stamp\s23:59:60),\sSNTP\ssimply\sfreezes\stime\sduring\sthe\sleap\ssecond;\r\n4.\sthe\stextual\srepresentation\sof\sa\sleap\ssecond\sis\sdefined\sby\sBIPM\sas\s"23:59:60",\smoreover\sleap\ssecond\sis\salways\sscheduled\sfor\sUTC\smidnight\sat\sthe\send\sof\sthe\slast\sday\sof\sa\smonth\s(Jun\sor\sDec),\sso\seven\sif\swe'd\sdecide\sto\signore\sleap\ssecond\sbut\sallows\sto\saccept\ssuch\stimes\sin\stextual\sform,\sit\sshall\sbe\sconsidered\sby\svalidity\srules\sof\s"...:60"\stimes\s(allowed\sonly\sthere,\sideally\schecking\saforementioned\stable\sof\sleap\sseconds).\r\n\r\nAccordingly,\syour\sexample\sfor\s8.7\sis\snot\scorrect\stoo...\sbasically\sthe\ssubject\sof\sleap\sseconds\swas\salways\s"ignored"\sin\stcls\sclock.\sThe\svalidity\sfeature\s(introduced\sin\s8.7\sand\smade\sdefault\son\sin\s9.0)\sjust\sbrought\sthe\sthing\sto\slight.
J login sebres
J mimetype text/x-markdown
K f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
U sebres
Z 7a914b8ccb96a69c4062793b987cfd68